TableLayoutSettings::ColumnCount Property

 

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

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

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

Property Value

Type: System::Int32

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

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

.NET Framework
Available since 2.0
Return to top
Show: