ColumnStyle Constructor (SizeType, Single)
Collapse the table of content
Expand the table of content

ColumnStyle Constructor (SizeType, Single)

 

Initializes and instance of the ColumnStyle class using the supplied SizeType and width values.

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

public ColumnStyle(
	SizeType sizeType,
	float width
)

Parameters

sizeType
Type: System.Windows.Forms.SizeType

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

width
Type: System.Single

The preferred width, in pixels or percentage, depending on the sizeType parameter.

Exception Condition
ArgumentOutOfRangeException

width is less than 0.

The exact meaning of the width parameter will vary depending on the sizeType parameter. For more information, see the Width property.

.NET Framework
Available since 2.0
Return to top
Show:
© 2016 Microsoft