DataGridViewCheckBoxCell 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 DataGridViewCheckBoxCell class.
Overloads
DataGridViewCheckBoxCell() |
Initializes a new instance of the DataGridViewCheckBoxCell class to its default state. |
DataGridViewCheckBoxCell(Boolean) |
Initializes a new instance of the DataGridViewCheckBoxCell class, enabling binary or ternary state. |
DataGridViewCheckBoxCell()
Initializes a new instance of the DataGridViewCheckBoxCell class to its default state.
public:
DataGridViewCheckBoxCell();
public DataGridViewCheckBoxCell ();
Public Sub New ()
Remarks
This constructor initializes the ThreeState property value to false
.
See also
Applies to
DataGridViewCheckBoxCell(Boolean)
Initializes a new instance of the DataGridViewCheckBoxCell class, enabling binary or ternary state.
public:
DataGridViewCheckBoxCell(bool threeState);
public DataGridViewCheckBoxCell (bool threeState);
new System.Windows.Forms.DataGridViewCheckBoxCell : bool -> System.Windows.Forms.DataGridViewCheckBoxCell
Public Sub New (threeState As Boolean)
Parameters
- threeState
- Boolean
true
to enable ternary state; false
to enable binary state.
Remarks
The standard operation of a check box allows for two states: checked and unchecked. When the threeState
parameter is set to true
, an additional, indeterminate state is allowed, which is visually denoted by a grey partial check.
See also
Applies to
.NET
피드백
https://aka.ms/ContentUserFeedback
출시 예정: 2024년 내내 콘텐츠에 대한 피드백 메커니즘으로 GitHub 문제를 단계적으로 폐지하고 이를 새로운 피드백 시스템으로 바꿀 예정입니다. 자세한 내용은 다음을 참조하세요.다음에 대한 사용자 의견 제출 및 보기