TableLayoutPanelGrowStyle Enumeration

 

Specifies how a TableLayoutPanel will gain additional rows or columns after its existing cells are full.

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

public enum class TableLayoutPanelGrowStyle

Member nameDescription
AddColumns

The TableLayoutPanel gains additional columns after it is full.

AddRows

The TableLayoutPanel gains additional rows after it is full.

FixedSize

The TableLayoutPanel does not allow additional rows or columns after it is full.

If all the cells in the TableLayoutPanel are filled and the GrowStyle property is set to FixedSize, an attempt to add another control will throw an exception.

The following example shows how to use TableLayoutPanelGrowStyle to set the GrowStyle property on a TableLayoutPanel control. This code example is part of a larger example provided for the TableLayoutPanel control.

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

.NET Framework
Available since 2.0
Return to top
Show: