• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

C# Forms.TableLayoutPanel类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了C#中System.Windows.Forms.TableLayoutPanel的典型用法代码示例。如果您正苦于以下问题:C# TableLayoutPanel类的具体用法?C# TableLayoutPanel怎么用?C# TableLayoutPanel使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



TableLayoutPanel类属于System.Windows.Forms命名空间,在下文中一共展示了TableLayoutPanel类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C#代码示例。

示例1: RectangleEnigmaPanel

        /// <summary>
        /// Constructeur par défaut, génère plusieurs carrés.
        /// </summary>
        public RectangleEnigmaPanel()
        {
            Random rnd = new Random();

            TableLayoutPanel centerLayout = new TableLayoutPanel();
            centerLayout.ColumnCount = 27;
            for (int i = 0; i < 27 ;i++)
            {
                centerLayout.ColumnStyles.Add(new ColumnStyle(SizeType.Percent,0.04f));
            }
            centerLayout.RowCount = 21;
            for (int i = 0; i < 21; i++)
            {
                centerLayout.RowStyles.Add(new RowStyle(SizeType.Percent, 0.05f));
            }
            centerLayout.Dock = DockStyle.Fill;
            Controls.Add(centerLayout);

            for (int i = 0; i < tpnlCarre.Length; i++)
            {
                tpnlCarre[i] = new Panel();
                Random randonGen = new Random();
                Color randomColor = Color.FromArgb(randonGen.Next(240), randonGen.Next(240),
                randonGen.Next(255));
                tpnlCarre[i].BackColor = randomColor;
                tpnlCarre[i].Size = new Size(20, 20);
                int iLocX = rnd.Next(1, 27);
                int iLocY = rnd.Next(0, 21);
                centerLayout.Controls.Add(tpnlCarre[i], iLocX, iLocY);
                tpnlCarre[i].Click += new EventHandler(ClickOnCarre);
            }

            centerLayout.Click += new EventHandler(ClickOnPanel);
        }
开发者ID:RomainCapo,项目名称:enigmos,代码行数:37,代码来源:RectangleEnigmaPanel.cs


示例2: DrawingToolbox

        /// <summary>
        /// Constructor.
        /// </summary>
        public DrawingToolbox()
            : base()
        {
            _panel = new TableLayoutPanel();
            _panel.AutoSize = true;
            _panel.Dock = DockStyle.Top;
            this.Controls.Add(_panel);

            InitializeComponent();

            _panel.ColumnStyles.Add(new ColumnStyle(SizeType.Percent, 50));
            _panel.ColumnStyles.Add(new ColumnStyle(SizeType.Percent, 50));

            _panel.RowStyles.Add(new RowStyle(SizeType.Percent, 50));
            _panel.RowStyles.Add(new RowStyle(SizeType.Percent, 50));

            _panel.Controls.Add(_titleLabel);
            _panel.SetCellPosition(_titleLabel, new TableLayoutPanelCellPosition(0,0));

            _panel.Controls.Add(DrawnigModeEnabled);
            _panel.SetCellPosition(DrawnigModeEnabled, new TableLayoutPanelCellPosition(0,1));

            _panel.Controls.Add(ClearButton);
            _panel.SetCellPosition(ClearButton, new TableLayoutPanelCellPosition(0, 2));
            _panel.Controls.Add(ExportImageButton);
            _panel.SetCellPosition(ExportImageButton, new TableLayoutPanelCellPosition(1, 2));

            Enabled = false;
            DrawnigModeEnabled.Enabled = false;
        }
开发者ID:SabariSankar,项目名称:ksiazek-legien-inz,代码行数:33,代码来源:DrawingToolbox.cs


示例3: Init

 public float Init(Parameters parameters1, float paramNameWidth, int totalWidth)
 {
     Controls.Clear();
     Parameters = parameters1;
     Parameters.Convert(WinFormsParameterFactory.Convert);
     int nrows = Parameters.GroupCount;
     parameterGroupPanels = new ParameterGroupPanel[nrows];
     grid = new TableLayoutPanel{AutoScroll = true};
     grid.ColumnStyles.Add(new ColumnStyle(SizeType.Percent, 100));
     grid.Name = "tableLayoutPanel";
     int totalHeight = 0;
     for (int i = 0; i < nrows; i++){
         int h = (int) (parameters1.GetGroup(i).Height + 26);
         grid.RowStyles.Add(new RowStyle(SizeType.Absolute, h));
         totalHeight += h;
     }
     grid.RowStyles.Add(new RowStyle(SizeType.AutoSize, 100));
     grid.Width = totalWidth;
     grid.Height = totalHeight;
     for (int i = 0; i < nrows; i++){
         AddParameterGroup(parameters1.GetGroup(i), i, paramNameWidth, totalWidth);
     }
     grid.Dock = DockStyle.Fill;
     Controls.Add(grid);
     Name = "ParameterPanel";
     Width = totalWidth;
     Height = totalHeight;
     return totalHeight;
 }
开发者ID:JurgenCox,项目名称:compbio-base,代码行数:29,代码来源:ParameterPanel.cs


示例4: HotkeyInput

        public HotkeyInput()
        {
            var tableLayout = new TableLayoutPanel();
            tableLayout.Dock = DockStyle.Fill;

            _textBox = new TextBox();
            _textBox.KeyDown += TextBoxOnKeyDown;
            _textBox.Dock = DockStyle.Fill;
            _textBox.Margin = new Padding(0);

            _clearButton = new Button();
            _clearButton.Text = "Clear";
            _clearButton.Click += ButtonClearOnClick;
            _clearButton.Margin = new Padding(0);
            _clearButton.Height = _textBox.Height;

            tableLayout.ColumnCount = 2;
            tableLayout.ColumnStyles.Add(new ColumnStyle(SizeType.Percent, 100));
            tableLayout.ColumnStyles.Add(new ColumnStyle(SizeType.AutoSize));

            tableLayout.Controls.Add(_textBox, 0, 0);
            tableLayout.Controls.Add(_clearButton, 1, 0);
            tableLayout.Dock = DockStyle.Fill;

            Controls.Add(tableLayout);
            HotkeyUpdated();
        }
开发者ID:raphaelr,项目名称:countanything,代码行数:27,代码来源:HotkeyInput.cs


示例5: CreateCollectionForm

        protected override CollectionForm CreateCollectionForm()
        {
            _CollectionForm = base.CreateCollectionForm();

            _LayoutPanel =
                _CollectionForm.Controls["overArchingTableLayoutPanel"] as TableLayoutPanel;

            if (_LayoutPanel != null)
            {
                PropertyGrid propertyGrid =
                    _LayoutPanel.Controls["propertyBrowser"] as PropertyGrid;

                if (propertyGrid != null)
                {
                    propertyGrid.HelpVisible = true;
                    propertyGrid.GotFocus += PropertyGridGotFocus;
                }
            }

            _CollectionForm.Load += CollectionFormLoad;
            _CollectionForm.Resize += CollectionFormResize;
            _CollectionForm.LocationChanged += CollectionFormLocationChanged;

            return (_CollectionForm);
        }
开发者ID:huamanhtuyen,项目名称:VNACCS,代码行数:25,代码来源:GridCellCollectionEditor.cs


示例6: InitializeComponent

 /// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     this.progressPanel1 = new DevExpress.XtraWaitForm.ProgressPanel();
     this.tableLayoutPanel1 = new System.Windows.Forms.TableLayoutPanel();
     this.tableLayoutPanel1.SuspendLayout();
     this.SuspendLayout();
     //
     // progressPanel1
     //
     this.progressPanel1.Appearance.BackColor = System.Drawing.Color.Transparent;
     this.progressPanel1.Appearance.Options.UseBackColor = true;
     this.progressPanel1.AppearanceCaption.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F);
     this.progressPanel1.AppearanceCaption.Options.UseFont = true;
     this.progressPanel1.AppearanceDescription.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F);
     this.progressPanel1.AppearanceDescription.Options.UseFont = true;
     this.progressPanel1.Description = "Loading...";
     this.progressPanel1.Dock = System.Windows.Forms.DockStyle.Fill;
     this.progressPanel1.ImageHorzOffset = 10;
     this.progressPanel1.Location = new System.Drawing.Point(0, 17);
     this.progressPanel1.LookAndFeel.SkinName = "Sharp";
     this.progressPanel1.LookAndFeel.UseDefaultLookAndFeel = false;
     this.progressPanel1.Margin = new System.Windows.Forms.Padding(0, 3, 0, 3);
     this.progressPanel1.Name = "progressPanel1";
     this.progressPanel1.Size = new System.Drawing.Size(246, 39);
     this.progressPanel1.TabIndex = 0;
     this.progressPanel1.Text = "progressPanel1";
     //
     // tableLayoutPanel1
     //
     this.tableLayoutPanel1.AutoSize = true;
     this.tableLayoutPanel1.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink;
     this.tableLayoutPanel1.BackColor = System.Drawing.Color.Transparent;
     this.tableLayoutPanel1.ColumnCount = 1;
     this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Absolute, 220F));
     this.tableLayoutPanel1.Controls.Add(this.progressPanel1, 0, 0);
     this.tableLayoutPanel1.Dock = System.Windows.Forms.DockStyle.Fill;
     this.tableLayoutPanel1.Location = new System.Drawing.Point(0, 0);
     this.tableLayoutPanel1.Name = "tableLayoutPanel1";
     this.tableLayoutPanel1.Padding = new System.Windows.Forms.Padding(0, 14, 0, 14);
     this.tableLayoutPanel1.RowCount = 1;
     this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 100F));
     this.tableLayoutPanel1.Size = new System.Drawing.Size(246, 73);
     this.tableLayoutPanel1.TabIndex = 1;
     //
     // WaitForm1
     //
     this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
     this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
     this.AutoSize = true;
     this.ClientSize = new System.Drawing.Size(246, 73);
     this.Controls.Add(this.tableLayoutPanel1);
     this.DoubleBuffered = true;
     this.MinimumSize = new System.Drawing.Size(246, 0);
     this.Name = "FrmLoading";
     this.StartPosition = System.Windows.Forms.FormStartPosition.Manual;
     this.Text = "Form1";
     this.tableLayoutPanel1.ResumeLayout(false);
     this.ResumeLayout(false);
     this.PerformLayout();
 }
开发者ID:jjbaird87,项目名称:TimeManagerExternalReports,代码行数:64,代码来源:frmLoading.designer.cs


示例7: AddNewRow

 /// <summary>
 ///     Add Control to TableLayoutPanel
 /// </summary>
 /// <param name="column">column position</param>
 /// <param name="row">row position</param>
 private void AddNewRow(Control control1stColumn, Control control2ndColumn, TableLayoutPanel panel)
 {
     panel.RowCount = panel.RowCount + 1;
     panel.RowStyles.Add(new RowStyle(SizeType.AutoSize));
     panel.Controls.Add(control1stColumn, 0, panel.RowCount);
     panel.Controls.Add(control2ndColumn, 1, panel.RowCount);
 }
开发者ID:x3r0,项目名称:CSGOSSE-ItemManager,代码行数:12,代码来源:MainForm.cs


示例8: AddTableContentOnlySymbol

 private void AddTableContentOnlySymbol(TableLayoutPanel tlp, Field2ColorElements<DiscreteElement> f2discrete)
 {
     short row = 0;
     foreach (DiscreteElement element in f2discrete.Elements)
     {
         string strWithoutA;
         tlp.RowStyles.Add(new RowStyle(SizeType.Absolute, 17f));
         row = (short) (row + 1);
         tlp.Controls.Add(base.CreateNumberLabel(row), 0, row);
         tlp.Controls.Add(base.CreateSymbolLabel(element.Symbol), 1, row);
         if (element.Value.Contains("@"))
         {
             strWithoutA = this.GetStrWithoutA(element.Value);
         }
         else
         {
             strWithoutA = element.Value;
         }
         tlp.Controls.Add(base.CreateValueTextBox(strWithoutA), 2, row);
         if (element.Legend.Contains("@"))
         {
             strWithoutA = this.GetStrWithoutA(element.Legend);
         }
         else
         {
             strWithoutA = element.Legend;
         }
         tlp.Controls.Add(base.CreateLegendTextBox(strWithoutA), 3, row);
         tlp.Controls.Add(base.CreateIsEnableCheckBox(element.IsEnabled), 4, row);
     }
 }
开发者ID:xiaoyj,项目名称:Space,代码行数:31,代码来源:DiscreteColors.cs


示例9: Init

 private void Init()
 {
     layoutPanel = new TableLayoutPanel();
     layoutPanel.CellBorderStyle = TableLayoutPanelCellBorderStyle.InsetDouble;
     layoutPanel.Dock = DockStyle.Fill;
     this.machinePanel.Controls.Add(layoutPanel);
     int row = 4, col = 4;
     DynamicLayout(layoutPanel, row, col);
     int index = 1;
     for (int i = 0; i < row; i++)
     {
         for (int j = 0; j < col; j++)
         {
             MachineControl machine = new MachineControl();
             uiMachines[index-1] = machine;
             machine.Dock = DockStyle.Fill;
             //machine.IPAddress = string.Format("192.168.0.{0:G}", 4 + index);
             machine.IPAddress = MainForm.Sixteen_IP[index - 1];
             machine.anotherName = MainForm.Sixteen_Name[index - 1];
             layoutPanel.Controls.Add(machine);
             layoutPanel.SetRow(machine, i);
             layoutPanel.SetColumn(machine, j);
             index++;
         }
     }
 }
开发者ID:BUPTSSECommunity,项目名称:Nuclide-PC,代码行数:26,代码来源:Layout16.cs


示例10: CreateControl

 public override object CreateControl()
 {
     ParameterPanel panelFalse = new ParameterPanel();
     ParameterPanel panelTrue = new ParameterPanel();
     panelFalse.Init(SubParamsFalse, ParamNameWidth, (int) TotalWidth);
     panelTrue.Init(SubParamsTrue, ParamNameWidth, (int) TotalWidth);
     CheckBox cb = new CheckBox{Checked = Value};
     cb.CheckedChanged += (sender, e) => ValueHasChanged();
     TableLayoutPanel tlp = new TableLayoutPanel();
     tlp.ColumnStyles.Add(new ColumnStyle(SizeType.Percent, 100));
     tlp.RowStyles.Add(new RowStyle(SizeType.Absolute, paramHeight));
     tlp.RowStyles.Add(new RowStyle(SizeType.AutoSize, 100));
     tlp.Controls.Add(cb, 0, 0);
     panelFalse.Visible = !Value;
     panelTrue.Visible = Value;
     tlp.Controls.Add(panelFalse, 0, 1);
     tlp.Controls.Add(panelTrue, 0, 1);
     cb.CheckedChanged += (sender, e) =>{
         panelFalse.Visible = !cb.Checked;
         panelTrue.Visible = cb.Checked;
     };
     tlp.PerformLayout();
     control = tlp;
     return control;
 }
开发者ID:JurgenCox,项目名称:compbio-base,代码行数:25,代码来源:BoolWithSubParamsWf.cs


示例11: FunctionConverterScene

        public FunctionConverterScene(MainForm mainForm)
        {
            _mainForm = mainForm;
            _panel = new TableLayoutPanel();

            Initialize();
        }
开发者ID:MDSchechtman,项目名称:Aerotech-Motor-Sizer,代码行数:7,代码来源:FunctionConverterScene.cs


示例12: PopulateOperandView

 public override void PopulateOperandView(BHAVEditor master, EditorScope escope, TableLayoutPanel panel)
 {
     panel.Controls.Add(new OpLabelControl(master, escope, Operand,
         new OpStaticTextProvider("Refreshes the specified property of the object on demand.")));
     panel.Controls.Add(new OpComboControl(master, escope, Operand, "Target Object:", "TargetObject", new OpStaticNamedPropertyProvider(EditorScope.Behaviour.Get<STR>(211))));
     panel.Controls.Add(new OpComboControl(master, escope, Operand, "Property:", "RefreshType", new OpStaticNamedPropertyProvider(EditorScope.Behaviour.Get<STR>(212))));
 }
开发者ID:RHY3756547,项目名称:FreeSO,代码行数:7,代码来源:RefreshDescriptor.cs


示例13: InitializeOptionsTable

		/// <summary>
		/// Initializes the options table
		/// </summary>
		/// <param name="settingsTable">Table</param>
		/// <param name="isPluginOptions">Whether the options are global options</param>
		public static void InitializeOptionsTable(TableLayoutPanel settingsTable, bool isPluginOptions)
		{
			int columnCount = isPluginOptions ? 3 : 4;
			settingsTable.SuspendLayout();
			try
			{
				// Set Columns
				settingsTable.ColumnCount = columnCount;
				settingsTable.ColumnStyles.Clear();
				settingsTable.ColumnStyles.Add(new ColumnStyle(SizeType.AutoSize));
				settingsTable.ColumnStyles.Add(new ColumnStyle(SizeType.AutoSize));
				settingsTable.ColumnStyles.Add(new ColumnStyle(SizeType.AutoSize));
				if (!isPluginOptions)
				{
					settingsTable.ColumnStyles.Add(new ColumnStyle(SizeType.AutoSize));
				}

				// Rows
				settingsTable.RowCount = 0;
				settingsTable.Controls.Clear();
			}
			finally
			{
				settingsTable.ResumeLayout(true);
			}

			// Hook Resize event
			settingsTable.Resize += (s, e) => ResizeEditorControls(settingsTable);
		}
开发者ID:stevebeauge,项目名称:crayon-syntax-snippet-wlw,代码行数:34,代码来源:FormHelper.cs


示例14: WelcomeFormEx

            public WelcomeFormEx()
            {
                AutoSize = true;
                AutoSizeMode = AutoSizeMode.GrowAndShrink;
                StartPosition = FormStartPosition.CenterScreen;

                TableLayoutPanel table = new TableLayoutPanel { Dock = DockStyle.Fill, AutoSize = true };
                table.ColumnStyles.Add(new ColumnStyle(SizeType.Absolute, 50));
                table.Controls.Add(new Label { Text = "Client: ", TextAlign = ContentAlignment.MiddleCenter }, 0, 0);
                table.Controls.Add(new Label { Text = "Server: ", TextAlign = ContentAlignment.MiddleCenter }, 0, 1);
                table.Controls.Add(new Label { Text = "Port: ", TextAlign = ContentAlignment.MiddleCenter }, 0, 2);
                table.Controls.Add(boxClient, 1, 0);
                table.Controls.Add(buttonClient, 2, 0);
                table.Controls.Add(boxServer, 1, 1);
                table.SetColumnSpan(boxServer, 2);
                table.Controls.Add(boxPort, 1, 2);
                table.SetColumnSpan(boxPort, 2);
                table.Controls.Add(buttonOK, 0, 3);
                table.SetColumnSpan(buttonOK, 3);
                Controls.Add(table);

                boxClient.Text = ConfigEx.GetElement(Ultima.Client.GetFilePath("client.exe") ?? string.Empty, "Client");
                boxServer.Text = ConfigEx.GetElement("185.21.223.28", "Server");
                boxPort.Text = ConfigEx.GetElement("2593", "Port");
                buttonClient.Click += buttonClient_Click;
            }
开发者ID:jaryn-kubik,项目名称:RazorEx,代码行数:26,代码来源:StartInfo.cs


示例15: DetailsLinkLabelClicked

		/// <summary>
		/// Показывает окно с подробным перечислением очков
		/// </summary>
		/// <param name="sender"></param>
		/// <param name="e"></param>
		private void DetailsLinkLabelClicked(object sender, LinkLabelLinkClickedEventArgs e)
		{
			if(Scores == null)
				return;
			var form = new Form
			           	{
			           		Size = new Size(400, 200),
			           		AutoSize = false,
			           		MinimizeBox = false,
			           		MaximizeBox = false,
			           		Padding = new Padding(10),
			           		FormBorderStyle = FormBorderStyle.FixedDialog
			           	};
			var outerPanel = new TableLayoutPanel {AutoSize = true, ColumnCount = 2, RowCount = 2};
			form.Controls.Add(outerPanel);
			for(int rNum = 0; rNum < 2; rNum++)
			{
				string penalties = string.Concat(Scores.GetPenalties(rNum).Select(x => x + "\r\n"));
				string text = string.Format(
					"Robot {0}:\r\n " +
					"Temporary scores: {1}\r\n" +
					"Penalties:\r\n{2}", rNum, Scores.GetTemp(rNum), penalties);
				var label = new Label
				            	{
				            		AutoSize = true,
				            		TabIndex = rNum,
				            		Anchor = (rNum == 0 ? AnchorStyles.Left : AnchorStyles.Right) | AnchorStyles.Top,
				            		Text = text
				            	};
				outerPanel.Controls.Add(label, rNum, 0);
				form.AutoScrollMinSize = label.Size;
			}
			form.ShowDialog();
		}
开发者ID:DmitryZyr,项目名称:CVARC,代码行数:39,代码来源:ScoreDisplayControl.cs


示例16: InitializeComponent

 private void InitializeComponent()
 {
     ComponentResourceManager manager = new ComponentResourceManager(typeof(AutoRefreshOptionControl));
     PropertyValue value2 = new PropertyValue();
     this.lblSlowVolumeAutoRefresh = new Label();
     this.cmbSlowVolumeAutoRefresh = new ComboBoxEx();
     this.ValuesWatcher = new PropertyValuesWatcher();
     TableLayoutPanel panel = new TableLayoutPanel();
     panel.SuspendLayout();
     ((ISupportInitialize) this.ValuesWatcher).BeginInit();
     base.SuspendLayout();
     manager.ApplyResources(panel, "tlpBack");
     panel.Controls.Add(this.lblSlowVolumeAutoRefresh, 0, 0);
     panel.Controls.Add(this.cmbSlowVolumeAutoRefresh, 1, 0);
     panel.Name = "tlpBack";
     manager.ApplyResources(this.lblSlowVolumeAutoRefresh, "lblSlowVolumeAutoRefresh");
     this.lblSlowVolumeAutoRefresh.Name = "lblSlowVolumeAutoRefresh";
     manager.ApplyResources(this.cmbSlowVolumeAutoRefresh, "cmbSlowVolumeAutoRefresh");
     this.cmbSlowVolumeAutoRefresh.DropDownStyle = ComboBoxStyle.DropDownList;
     this.cmbSlowVolumeAutoRefresh.FormattingEnabled = true;
     this.cmbSlowVolumeAutoRefresh.MinimumSize = new Size(110, 0);
     this.cmbSlowVolumeAutoRefresh.Name = "cmbSlowVolumeAutoRefresh";
     value2.DataObject = this.cmbSlowVolumeAutoRefresh;
     value2.PropertyName = "SelectedIndex";
     this.ValuesWatcher.Items.AddRange(new PropertyValue[] { value2 });
     manager.ApplyResources(this, "$this");
     base.AutoScaleMode = AutoScaleMode.Font;
     base.Controls.Add(panel);
     base.Name = "AutoRefreshOptionControl";
     panel.ResumeLayout(false);
     panel.PerformLayout();
     ((ISupportInitialize) this.ValuesWatcher).EndInit();
     base.ResumeLayout(false);
     base.PerformLayout();
 }
开发者ID:shankithegreat,项目名称:commanderdotnet,代码行数:35,代码来源:AutoRefreshOptionControl.cs


示例17: CreateControls

		protected override void CreateControls(TableLayoutPanel panel)
		{
			panel.ColumnCount = 1;
			panel.RowCount = 3;

			CreateProjectNameControls(panel);
		}
开发者ID:xuchuansheng,项目名称:GenXSource,代码行数:7,代码来源:NuGenGeneralProjectSettingsDisplayer.cs


示例18: createSgTable

        public void createSgTable(int sgCnt, string meth)
        {
            int depth = 25 * (sgCnt + 1);

             table2 = new TableLayoutPanel() { ColumnCount = 4, RowCount = sgCnt + 1, Size = new Size(725, depth) };
             for (int i = 0; i < sgCnt + 1; i++)
            this.table2.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 24));
             table2.ColumnStyles.Add(new ColumnStyle(SizeType.Absolute, 120));
             table2.ColumnStyles.Add(new ColumnStyle(SizeType.Absolute, 120));
             table2.ColumnStyles.Add(new ColumnStyle(SizeType.Absolute, 120));
             table2.ColumnStyles.Add(new ColumnStyle(SizeType.Percent, 100F));
             Panel panel0 = new Panel() { Dock = DockStyle.Fill };
             Panel panel1 = new Panel() { Dock = DockStyle.Fill };
             Panel panel2 = new Panel() { Dock = DockStyle.Fill };
             Panel panel3 = new Panel() { Dock = DockStyle.Fill };
             table2.Controls.Add(panel0, 0, 0);
             table2.Controls.Add(panel1, 1, 0);
             table2.Controls.Add(panel2, 2, 0);
             table2.Controls.Add(panel3, 3, 0);
             Label labelSg = new Label() { Text = "SampGrp", Padding = new Padding(3, 0, 0, 0), AutoSize = true };
             panel0.Controls.Add(labelSg);
             Label labelSamp = new Label() { Text = "Current Samples", AutoSize = true };
             panel1.Controls.Add(labelSamp);
             Label labelSupp = new Label() { Text = "Supplemental", AutoSize = true };
             panel2.Controls.Add(labelSupp);
             Label labelIns = new Label() { Text = "Insurance Available", AutoSize = true };
             panel3.Controls.Add(labelIns);

             //this.flowLayoutPanel1.Controls.Add(table2);
        }
开发者ID:FMSC-Measurements,项目名称:Cruise-Design,代码行数:30,代码来源:ReportAdditional.cs


示例19: CreateControls

		protected override void CreateControls(TableLayoutPanel panel)
		{
			panel.ColumnCount = 1;
			panel.RowCount = 1;

			CreateExceptionGrid(panel);
		}
开发者ID:xuchuansheng,项目名称:GenXSource,代码行数:7,代码来源:NuGenProjectExceptionSettingsDisplayer.cs


示例20: Init

        public static void Init(TableLayoutPanel tlp)
        {
            MainWindowGrid = tlp;

            var tl = Create3D();
            var tr = Create2D(Viewport2D.ViewDirection.Top);
            var bl = Create2D(Viewport2D.ViewDirection.Front);
            var br = Create2D(Viewport2D.ViewDirection.Side);

            Viewports.Add(tl);
            Viewports.Add(tr);
            Viewports.Add(bl);
            Viewports.Add(br);

            Viewports.ForEach(SubscribeExceptions);

            MainWindowGrid.Controls.Clear();
            MainWindowGrid.ColumnCount = 2;
            MainWindowGrid.RowCount = 2;

            MainWindowGrid.Controls.Add(tl, 0, 0);
            MainWindowGrid.Controls.Add(tr, 1, 0);
            MainWindowGrid.Controls.Add(bl, 0, 1);
            MainWindowGrid.Controls.Add(br, 1, 1);

            RunAll();
        }
开发者ID:jpiolho,项目名称:sledge,代码行数:27,代码来源:ViewportManager.cs



注:本文中的System.Windows.Forms.TableLayoutPanel类示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
C# Forms.TextBox类代码示例发布时间:2022-05-26
下一篇:
C# Forms.TableLayoutCellPaintEventArgs类代码示例发布时间:2022-05-26
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap