TableLayoutSettings::RowCount Property

 

Gets or sets the maximum number of rows allowed in the table layout.

Namespace:   System.Windows.Forms
Assembly:  System.Windows.Forms (in System.Windows.Forms.dll)

public:
property int RowCount {
	int get();
	void set(int value);
}

Property Value

Type: System::Int32

The 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.

No code example is currently available or this language may not be supported.

.NET Framework
Available since 2.0
Return to top
Show: