TableLayoutSettings::ColumnCount Property
.NET Framework (current version)
Gets or sets the maximum number of columns allowed in the table layout.
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
Property Value
Type: System::Int32The maximum number of columns allowed in the table layout. The default is 0.
| Exception | Condition |
|---|---|
| ArgumentOutOfRangeException | The property value is less than 0. |
Setting the ColumnCount property does not allocate the columns or any backing memory. This allocation occurs when the columns are created.
Setting this property causes the table to undergo another layout operation.
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.
.NET Framework
Available since 2.0
Available since 2.0
Show: