TableLayoutSettings::RowCount Property
.NET Framework (current version)
Gets or sets the maximum number of rows allowed in the table layout.
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
Property Value
Type: System::Int32The maximum number of rows allowed in the table layout. The default is 0.
| Exception | Condition |
|---|---|
| ArgumentOutOfRangeException | The property value is less than 0. |
Setting the RowCount property does not allocate the rows or any backing memory. This allocation occurs when the rows 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: