Читати англійською Редагувати

Поділитися через


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.

C#
public System.Windows.Forms.TableLayoutPanelGrowStyle GrowStyle { get; set; }

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

Продукт Версії
.NET Framework 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
Windows Desktop 3.0, 3.1, 5, 6, 7, 8, 9, 10

See also