1 private void SetTableLayout() 2 { 3 this.tableLayoutPanel1.ColumnStyles[0] = 4 new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Absolute, 5 tableLayoutPanel1.Width/2); 6 this.tableLayoutPanel1.ColumnStyles[1] = 7 new ColumnStyle(SizeType.Percent, 8 100); 9 }
行方向的使用类似