TableLayoutPanel Class

Represents a panel that dynamically lays out its contents in a grid composed of rows and columns.The TableLayoutPanel control creates subsections within a form that will maintain the sizes in either absolute or percentage values as a form is resized, without requiring additional code to move and size the individual sections.

Namespace: elsystem.windows.forms

Properties

   Additional properties, methods, and events are described in the classes listed under Inheritance Hierarchy (see below).

  Name Type Description
Public property AutoScroll bool True if the container enables the user to scroll to any controls placed outside of its visible boundaries.
Public property CellBorderStyle enum Gets or sets the border style of the cells. See TableLayoutPanelCellBorderStyle for possible values..
Public property ColumnCount int Represents the number of columns in the table.
Public property ColumnStyles object Tthe TableLayoutControlCollection containing TableLayoutStyle objects for the columns of the TableLayoutPanel.
Public property Controls object The TableLayoutControlCollection of control objects added to the TableLayoutPanel cells.
Public property GrowStyle object Indicates how the TableLayoutPanel control should expand to accommodate new cells when all existing cells are occupied. See TableLayoutPanelGrowStyle for a list of styles.
Public property RowCount int Represents the number of rows in the table.
Public property RowStyles object The TableLayoutRowStyleCollection containing RowStyle objects for the rows of the TableLayoutPanel.
Methods
  Name Description
Public property AddColumnStyle(st,value) Indicates the column style type and the width value of the panel. See SizeType for possible style types.  
Public property AddControl(ctrl) Adds a control inherited from Control object to the panel.  
Public property AddControl(ctrl,column,row) Adds a control inherited from Control object to the panel for a specific column and row.  
Public property AddRowStyle(st,value) Indicates the row style type and the height value of the panel. See SizeType for possible style types.    
Public property Create() Initializes a new instance of the class.