TableLayoutSettings Class
Collects the characteristics associated with table layouts.
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
| Name | Description | |
|---|---|---|
![]() | ColumnCount | Gets or sets the maximum number of columns allowed in the table layout. |
![]() | ColumnStyles | Gets the collection of styles used to determine the look and feel of the table layout columns. |
![]() | GrowStyle | Gets or sets a value indicating how the table layout should expand to accommodate new cells when all existing cells are occupied. |
![]() | LayoutEngine | Gets the current table layout engine.(Overrides LayoutSettings::LayoutEngine.) |
![]() | RowCount | Gets or sets the maximum number of rows allowed in the table layout. |
![]() | RowStyles | Gets the collection of styles used to determine the look and feel of the table layout rows. |
| Name | Description | |
|---|---|---|
![]() | Equals(Object^) | Determines whether the specified object is equal to the current object.(Inherited from Object.) |
![]() | GetCellPosition(Object^) | Gets the TableLayoutPanelCellPosition that represents the row and the column of the cell. |
![]() | GetColumn(Object^) | Gets the column position of the specified child control. |
![]() | GetColumnSpan(Object^) | Gets the number of columns that the cell containing the child control spans. |
![]() | GetHashCode() | Serves as the default hash function. (Inherited from Object.) |
![]() | GetRow(Object^) | Gets the row position of the specified child control. |
![]() | GetRowSpan(Object^) | Gets the number of rows that the cell containing the child control spans. |
![]() | GetType() | |
![]() | SetCellPosition(Object^, TableLayoutPanelCellPosition) | Sets the TableLayoutPanelCellPosition that represents the row and the column of the cell. |
![]() | SetColumn(Object^, Int32) | Sets the column position for the specified child control. |
![]() | SetColumnSpan(Object^, Int32) | Sets the number of columns that the cell containing the child control spans. |
![]() | SetRow(Object^, Int32) | Sets the row position of the specified child control. |
![]() | SetRowSpan(Object^, Int32) | Sets the number of rows that the cell containing the child control spans. |
![]() | ToString() | Returns a string that represents the current object.(Inherited from Object.) |
| Name | Description | |
|---|---|---|
![]() ![]() | ISerializable::GetObjectData(SerializationInfo^, StreamingContext) | For a description of this member, see ISerializable::GetObjectData. |
The TableLayoutSettings class collects and manages the characteristics associated with the table layout scheme. This class is used internally by the TableLayoutPanel and ToolStrip classes, as well as the table layout engine. The TableLayoutSettings class is used by the layout engine to determine how to lay out the container's child controls.
The TableLayoutSettings class manages the following information:
The TableLayoutPanelGrowStyle being used.
The maximum number of columns and rows in the layout.
The collection of styles used for the contained columns and rows.
The following example shows how to initialize a TableLayoutSettings object for a TableLayoutPanel control. For a full code listing, see How to: Implement a Custom ToolStripRenderer.
Available since 2.0
Any public static ( Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.



