แก้ไข

แชร์ผ่าน


TableLayoutSettings.GrowStyle Property

Definition

Gets or sets a value indicating how the table layout should expand to accommodate new cells when all existing cells are occupied.

public:
 property System::Windows::Forms::TableLayoutPanelGrowStyle GrowStyle { System::Windows::Forms::TableLayoutPanelGrowStyle get(); void set(System::Windows::Forms::TableLayoutPanelGrowStyle value); };
public System.Windows.Forms.TableLayoutPanelGrowStyle GrowStyle { get; set; }
member this.GrowStyle : System.Windows.Forms.TableLayoutPanelGrowStyle with get, set
Public Property GrowStyle As TableLayoutPanelGrowStyle

Property Value

One of the TableLayoutPanelGrowStyle values. The default is AddRows.

Exceptions

.NET Framework only: The property value is not valid for the enumeration type.

.NET 5 and earlier versions only: The property value is not valid for the enumeration type.

.NET 6 and later versions only: The property value is not valid for the enumeration type.

Remarks

The GrowStyle property determines how the layout engine should add a new cell to a full table. This property can be set to AddRows to indicate that rows should be added, AddColumns to indicate that columns should be added, or FixedSize to disallow expansion.

Applies to

See also