RowStyle Constructors

Definition

Initializes an instance of the RowStyle class.

Overloads

RowStyle()

Initializes an instance of the RowStyle class to its default state.

RowStyle(SizeType)

Initializes an instance of the RowStyle class using the supplied SizeType value.

RowStyle(SizeType, Single)

Initializes an instance of the RowStyle class using the supplied SizeType and height values.

RowStyle()

Source:
RowStyle.cs
Source:
RowStyle.cs
Source:
RowStyle.cs

Initializes an instance of the RowStyle class to its default state.

C#
public RowStyle();

Remarks

This constructor sets the SizeType property to AutoSize and the Height property to 0.

See also

Applies to

.NET Framework 4.8.1 and other versions
Product Versions
.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

RowStyle(SizeType)

Source:
RowStyle.cs
Source:
RowStyle.cs
Source:
RowStyle.cs

Initializes an instance of the RowStyle class using the supplied SizeType value.

C#
public RowStyle(System.Windows.Forms.SizeType sizeType);

Parameters

sizeType
SizeType

A SizeType indicating how the row should be should be sized relative to its containing table.

Remarks

This constructor sets the Height property to 0.

See also

Applies to

.NET Framework 4.8.1 and other versions
Product Versions
.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

RowStyle(SizeType, Single)

Source:
RowStyle.cs
Source:
RowStyle.cs
Source:
RowStyle.cs

Initializes an instance of the RowStyle class using the supplied SizeType and height values.

C#
public RowStyle(System.Windows.Forms.SizeType sizeType, float height);

Parameters

sizeType
SizeType

A SizeType indicating how the row should be should be sized relative to its containing table.

height
Single

The preferred height in pixels or percentage of the TableLayoutPanel, depending on sizeType.

Exceptions

height is less than 0.

Remarks

The height parameter will take on different meanings depending on the sizeType parameter. For more information, see the Height property.

See also

Applies to

.NET Framework 4.8.1 and other versions
Product Versions
.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