ColumnStyle Constructors
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Initializes a new instance of the ColumnStyle class to its default state.
Overloads
ColumnStyle() |
Initializes a new instance of the ColumnStyle class to its default state. |
ColumnStyle(SizeType) |
Initializes a new instance of the ColumnStyle class using the supplied SizeType value. |
ColumnStyle(SizeType, Single) |
Initializes a new instance of the ColumnStyle class using the supplied SizeType and width values. |
ColumnStyle()
Initializes a new instance of the ColumnStyle class to its default state.
public:
ColumnStyle();
public ColumnStyle ();
Public Sub New ()
Remarks
This constructor sets the SizeType property to AutoSize and the Width property to 0.
See also
Applies to
ColumnStyle(SizeType)
Initializes a new instance of the ColumnStyle class using the supplied SizeType value.
public:
ColumnStyle(System::Windows::Forms::SizeType sizeType);
public ColumnStyle (System.Windows.Forms.SizeType sizeType);
new System.Windows.Forms.ColumnStyle : System.Windows.Forms.SizeType -> System.Windows.Forms.ColumnStyle
Public Sub New (sizeType As SizeType)
Parameters
- sizeType
- SizeType
A SizeType indicating how the column should be should be sized relative to its containing table.
Remarks
This constructor sets the Width property to 0.
See also
Applies to
ColumnStyle(SizeType, Single)
Initializes a new instance of the ColumnStyle class using the supplied SizeType and width values.
public:
ColumnStyle(System::Windows::Forms::SizeType sizeType, float width);
public ColumnStyle (System.Windows.Forms.SizeType sizeType, float width);
new System.Windows.Forms.ColumnStyle : System.Windows.Forms.SizeType * single -> System.Windows.Forms.ColumnStyle
Public Sub New (sizeType As SizeType, width As Single)
Parameters
- sizeType
- SizeType
A SizeType indicating how the column should be should be sized relative to its containing table.
- width
- Single
The preferred width, in pixels or percentage, depending on the sizeType
parameter.
Exceptions
width
is less than 0.
Remarks
The exact meaning of the width
parameter will vary depending on the sizeType
parameter. For more information, see the Width property.
See also
Applies to
.NET
피드백
https://aka.ms/ContentUserFeedback
출시 예정: 2024년 내내 콘텐츠에 대한 피드백 메커니즘으로 GitHub 문제를 단계적으로 폐지하고 이를 새로운 피드백 시스템으로 바꿀 예정입니다. 자세한 내용은 다음을 참조하세요.다음에 대한 사용자 의견 제출 및 보기