RowStyle Constructor (SizeType, Single)

 

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

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

public RowStyle(
	SizeType sizeType,
	float height
)

Parameters

sizeType
Type: System.Windows.Forms.SizeType

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

height
Type: System.Single

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

Exception Condition
ArgumentOutOfRangeException

height is less than 0.

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

.NET Framework
Available since 2.0
Return to top
Show: