TableLayoutPanel.RowStyles : TableLayoutPanel « System.Windows.Forms « C# / C Sharp by API






TableLayoutPanel.RowStyles

 



using System;
using System.Drawing;
using System.Windows.Forms;

public class FloatLayoutTableLayout : Form
{

    public FloatLayoutTableLayout()
    {
        InitializeComponent();
    }

    [STAThread]
    public static void Main(string[] args)
    {
        Application.Run(new FloatLayoutTableLayout());
    }

    private void InitializeComponent()
    {
        this.flowLayoutPanel1 = new System.Windows.Forms.FlowLayoutPanel();
        this.tableLayoutPanel1 = new System.Windows.Forms.TableLayoutPanel();
        this.radioButton1 = new System.Windows.Forms.RadioButton();
        this.radioButton2 = new System.Windows.Forms.RadioButton();
        this.radioButton3 = new System.Windows.Forms.RadioButton();
        this.radioButton4 = new System.Windows.Forms.RadioButton();
        this.radioButton5 = new System.Windows.Forms.RadioButton();
        this.label1 = new System.Windows.Forms.Label();
        this.label2 = new System.Windows.Forms.Label();
        this.radioButton6 = new System.Windows.Forms.RadioButton();
        this.radioButton7 = new System.Windows.Forms.RadioButton();
        this.radioButton8 = new System.Windows.Forms.RadioButton();
        this.radioButton9 = new System.Windows.Forms.RadioButton();
        this.radioButton10 = new System.Windows.Forms.RadioButton();
        this.radioButton11 = new System.Windows.Forms.RadioButton();
        this.radioButton12 = new System.Windows.Forms.RadioButton();
        this.radioButton13 = new System.Windows.Forms.RadioButton();
        this.radioButton14 = new System.Windows.Forms.RadioButton();
        this.radioButton15 = new System.Windows.Forms.RadioButton();
        this.radioButton16 = new System.Windows.Forms.RadioButton();
        this.radioButton17 = new System.Windows.Forms.RadioButton();
        this.radioButton18 = new System.Windows.Forms.RadioButton();
        this.flowLayoutPanel1.SuspendLayout();
        this.tableLayoutPanel1.SuspendLayout();
        this.SuspendLayout();
        // 
        // flowLayoutPanel1
        // 
        this.flowLayoutPanel1.Controls.Add(this.radioButton10);
        this.flowLayoutPanel1.Controls.Add(this.radioButton11);
        this.flowLayoutPanel1.Controls.Add(this.radioButton12);
        this.flowLayoutPanel1.Controls.Add(this.radioButton13);
        this.flowLayoutPanel1.Controls.Add(this.radioButton14);
        this.flowLayoutPanel1.Controls.Add(this.radioButton15);
        this.flowLayoutPanel1.Controls.Add(this.radioButton16);
        this.flowLayoutPanel1.Controls.Add(this.radioButton17);
        this.flowLayoutPanel1.Controls.Add(this.radioButton18);
        this.flowLayoutPanel1.Location = new System.Drawing.Point(299, 35);
        this.flowLayoutPanel1.Name = "flowLayoutPanel1";
        this.flowLayoutPanel1.Size = new System.Drawing.Size(298, 219);
        this.flowLayoutPanel1.TabIndex = 0;
        // 
        // tableLayoutPanel1
        // 
        this.tableLayoutPanel1.ColumnCount = 3;
        this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 50F));
        this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 50F));
        this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Absolute, 96F));
        this.tableLayoutPanel1.Controls.Add(this.radioButton1, 0, 0);
        this.tableLayoutPanel1.Controls.Add(this.radioButton2, 1, 0);
        this.tableLayoutPanel1.Controls.Add(this.radioButton3, 2, 0);
        this.tableLayoutPanel1.Controls.Add(this.radioButton4, 0, 1);
        this.tableLayoutPanel1.Controls.Add(this.radioButton5, 1, 1);
        this.tableLayoutPanel1.Controls.Add(this.radioButton6, 2, 1);
        this.tableLayoutPanel1.Controls.Add(this.radioButton7, 0, 2);
        this.tableLayoutPanel1.Controls.Add(this.radioButton8, 1, 2);
        this.tableLayoutPanel1.Controls.Add(this.radioButton9, 2, 2);
        this.tableLayoutPanel1.GrowStyle = System.Windows.Forms.TableLayoutPanelGrowStyle.FixedSize;
        this.tableLayoutPanel1.Location = new System.Drawing.Point(12, 35);
        this.tableLayoutPanel1.Name = "tableLayoutPanel1";
        this.tableLayoutPanel1.RowCount = 3;
        this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 50F));
        this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 50F));
        this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 88F));
        this.tableLayoutPanel1.Size = new System.Drawing.Size(281, 219);
        this.tableLayoutPanel1.TabIndex = 1;
        // 
        // radioButton1
        // 
        this.radioButton1.Anchor = System.Windows.Forms.AnchorStyles.None;
        this.radioButton1.AutoSize = true;
        this.radioButton1.Location = new System.Drawing.Point(5, 24);
        this.radioButton1.Name = "radioButton1";
        this.radioButton1.Size = new System.Drawing.Size(81, 17);
        this.radioButton1.TabIndex = 0;
        this.radioButton1.Text = "radioButton1";
        // 
        // radioButton2
        // 
        this.radioButton2.Anchor = System.Windows.Forms.AnchorStyles.None;
        this.radioButton2.AutoSize = true;
        this.radioButton2.Location = new System.Drawing.Point(97, 24);
        this.radioButton2.Name = "radioButton2";
        this.radioButton2.Size = new System.Drawing.Size(81, 17);
        this.radioButton2.TabIndex = 1;
        this.radioButton2.Text = "radioButton2";
        // 
        // radioButton3
        // 
        this.radioButton3.Anchor = System.Windows.Forms.AnchorStyles.None;
        this.radioButton3.AutoSize = true;
        this.radioButton3.Location = new System.Drawing.Point(192, 24);
        this.radioButton3.Name = "radioButton3";
        this.radioButton3.Size = new System.Drawing.Size(81, 17);
        this.radioButton3.TabIndex = 2;
        this.radioButton3.Text = "radioButton3";
        // 
        // radioButton4
        // 
        this.radioButton4.Anchor = System.Windows.Forms.AnchorStyles.None;
        this.radioButton4.AutoSize = true;
        this.radioButton4.Location = new System.Drawing.Point(5, 89);
        this.radioButton4.Name = "radioButton4";
        this.radioButton4.Size = new System.Drawing.Size(81, 17);
        this.radioButton4.TabIndex = 3;
        this.radioButton4.Text = "radioButton4";
        // 
        // radioButton5
        // 
        this.radioButton5.Anchor = System.Windows.Forms.AnchorStyles.None;
        this.radioButton5.AutoSize = true;
        this.radioButton5.Location = new System.Drawing.Point(97, 89);
        this.radioButton5.Name = "radioButton5";
        this.radioButton5.Size = new System.Drawing.Size(81, 17);
        this.radioButton5.TabIndex = 4;
        this.radioButton5.Text = "radioButton5";
        // 
        // label1
        // 
        this.label1.AutoSize = true;
        this.label1.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
        this.label1.Location = new System.Drawing.Point(86, 9);
        this.label1.Name = "label1";
        this.label1.Size = new System.Drawing.Size(139, 20);
        this.label1.TabIndex = 2;
        this.label1.Text = "Table Layout Panel";
        // 
        // label2
        // 
        this.label2.AutoSize = true;
        this.label2.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
        this.label2.Location = new System.Drawing.Point(370, 9);
        this.label2.Name = "label2";
        this.label2.Size = new System.Drawing.Size(133, 20);
        this.label2.TabIndex = 3;
        this.label2.Text = "Flow Layout Panel";
        // 
        // radioButton6
        // 
        this.radioButton6.Anchor = System.Windows.Forms.AnchorStyles.None;
        this.radioButton6.AutoSize = true;
        this.radioButton6.Location = new System.Drawing.Point(192, 89);
        this.radioButton6.Name = "radioButton6";
        this.radioButton6.Size = new System.Drawing.Size(81, 17);
        this.radioButton6.TabIndex = 5;
        this.radioButton6.Text = "radioButton6";
        // 
        // radioButton7
        // 
        this.radioButton7.Anchor = System.Windows.Forms.AnchorStyles.None;
        this.radioButton7.AutoSize = true;
        this.radioButton7.Location = new System.Drawing.Point(5, 166);
        this.radioButton7.Name = "radioButton7";
        this.radioButton7.Size = new System.Drawing.Size(81, 17);
        this.radioButton7.TabIndex = 6;
        this.radioButton7.Text = "radioButton7";
        // 
        // radioButton8
        // 
        this.radioButton8.Anchor = System.Windows.Forms.AnchorStyles.None;
        this.radioButton8.AutoSize = true;
        this.radioButton8.Location = new System.Drawing.Point(97, 166);
        this.radioButton8.Name = "radioButton8";
        this.radioButton8.Size = new System.Drawing.Size(81, 17);
        this.radioButton8.TabIndex = 7;
        this.radioButton8.Text = "radioButton8";
        // 
        // radioButton9
        // 
        this.radioButton9.Anchor = System.Windows.Forms.AnchorStyles.None;
        this.radioButton9.AutoSize = true;
        this.radioButton9.Location = new System.Drawing.Point(192, 166);
        this.radioButton9.Name = "radioButton9";
        this.radioButton9.Size = new System.Drawing.Size(81, 17);
        this.radioButton9.TabIndex = 8;
        this.radioButton9.Text = "radioButton9";
        // 
        // radioButton10
        // 
        this.radioButton10.AutoSize = true;
        this.radioButton10.Location = new System.Drawing.Point(3, 3);
        this.radioButton10.Name = "radioButton10";
        this.radioButton10.Size = new System.Drawing.Size(87, 17);
        this.radioButton10.TabIndex = 0;
        this.radioButton10.Text = "radioButton10";
        // 
        // radioButton11
        // 
        this.radioButton11.AutoSize = true;
        this.radioButton11.Location = new System.Drawing.Point(96, 3);
        this.radioButton11.Name = "radioButton11";
        this.radioButton11.Size = new System.Drawing.Size(87, 17);
        this.radioButton11.TabIndex = 1;
        this.radioButton11.Text = "radioButton11";
        // 
        // radioButton12
        // 
        this.radioButton12.AutoSize = true;
        this.radioButton12.Location = new System.Drawing.Point(189, 3);
        this.radioButton12.Name = "radioButton12";
        this.radioButton12.Size = new System.Drawing.Size(87, 17);
        this.radioButton12.TabIndex = 2;
        this.radioButton12.Text = "radioButton12";
        // 
        // radioButton13
        // 
        this.radioButton13.AutoSize = true;
        this.radioButton13.Location = new System.Drawing.Point(3, 26);
        this.radioButton13.Name = "radioButton13";
        this.radioButton13.Size = new System.Drawing.Size(87, 17);
        this.radioButton13.TabIndex = 3;
        this.radioButton13.Text = "radioButton13";
        // 
        // radioButton14
        // 
        this.radioButton14.AutoSize = true;
        this.radioButton14.Location = new System.Drawing.Point(96, 26);
        this.radioButton14.Name = "radioButton14";
        this.radioButton14.Size = new System.Drawing.Size(87, 17);
        this.radioButton14.TabIndex = 4;
        this.radioButton14.Text = "radioButton14";
        // 
        // radioButton15
        // 
        this.radioButton15.AutoSize = true;
        this.radioButton15.Location = new System.Drawing.Point(189, 26);
        this.radioButton15.Name = "radioButton15";
        this.radioButton15.Size = new System.Drawing.Size(87, 17);
        this.radioButton15.TabIndex = 5;
        this.radioButton15.Text = "radioButton15";
        // 
        // radioButton16
        // 
        this.radioButton16.AutoSize = true;
        this.radioButton16.Location = new System.Drawing.Point(3, 49);
        this.radioButton16.Name = "radioButton16";
        this.radioButton16.Size = new System.Drawing.Size(87, 17);
        this.radioButton16.TabIndex = 6;
        this.radioButton16.Text = "radioButton16";
        // 
        // radioButton17
        // 
        this.radioButton17.AutoSize = true;
        this.radioButton17.Location = new System.Drawing.Point(96, 49);
        this.radioButton17.Name = "radioButton17";
        this.radioButton17.Size = new System.Drawing.Size(87, 17);
        this.radioButton17.TabIndex = 7;
        this.radioButton17.Text = "radioButton17";
        // 
        // radioButton18
        // 
        this.radioButton18.AutoSize = true;
        this.radioButton18.Location = new System.Drawing.Point(189, 49);
        this.radioButton18.Name = "radioButton18";
        this.radioButton18.Size = new System.Drawing.Size(87, 17);
        this.radioButton18.TabIndex = 8;
        this.radioButton18.Text = "radioButton18";
        // 
        // FloatLayoutTableLayout
        // 
        this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
        this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
        this.ClientSize = new System.Drawing.Size(609, 266);
        this.Controls.Add(this.label2);
        this.Controls.Add(this.label1);
        this.Controls.Add(this.tableLayoutPanel1);
        this.Controls.Add(this.flowLayoutPanel1);
        this.flowLayoutPanel1.ResumeLayout(false);
        this.flowLayoutPanel1.PerformLayout();
        this.tableLayoutPanel1.ResumeLayout(false);
        this.tableLayoutPanel1.PerformLayout();
        this.ResumeLayout(false);
        this.PerformLayout();

    }

    private System.Windows.Forms.FlowLayoutPanel flowLayoutPanel1;
    private System.Windows.Forms.TableLayoutPanel tableLayoutPanel1;
    private System.Windows.Forms.RadioButton radioButton10;
    private System.Windows.Forms.RadioButton radioButton11;
    private System.Windows.Forms.RadioButton radioButton12;
    private System.Windows.Forms.RadioButton radioButton13;
    private System.Windows.Forms.RadioButton radioButton14;
    private System.Windows.Forms.RadioButton radioButton15;
    private System.Windows.Forms.RadioButton radioButton16;
    private System.Windows.Forms.RadioButton radioButton17;
    private System.Windows.Forms.RadioButton radioButton18;
    private System.Windows.Forms.RadioButton radioButton1;
    private System.Windows.Forms.RadioButton radioButton2;
    private System.Windows.Forms.RadioButton radioButton3;
    private System.Windows.Forms.RadioButton radioButton4;
    private System.Windows.Forms.RadioButton radioButton5;
    private System.Windows.Forms.RadioButton radioButton6;
    private System.Windows.Forms.RadioButton radioButton7;
    private System.Windows.Forms.RadioButton radioButton8;
    private System.Windows.Forms.RadioButton radioButton9;
    private System.Windows.Forms.Label label1;
    private System.Windows.Forms.Label label2;


}

   
  








Related examples in the same category

1.TableLayoutPanel.ColumnCount
2.TableLayoutPanel.ColumnStyles.Add
3.TableLayoutPanel.Controls.Add
4.TableLayoutPanel.GrowStyle
5.TableLayoutPanel.RowCount