DataGridViewCheckBoxColumn コンストラクター
定義
重要
一部の情報は、リリース前に大きく変更される可能性があるプレリリースされた製品に関するものです。 Microsoft は、ここに記載されている情報について、明示または黙示を問わず、一切保証しません。
DataGridViewCheckBoxColumn クラスの新しいインスタンスを初期化します。
オーバーロード
DataGridViewCheckBoxColumn() |
DataGridViewCheckBoxColumn クラスの新しいインスタンスを既定の状態に初期化します。 |
DataGridViewCheckBoxColumn(Boolean) |
DataGridViewCheckBoxColumn の新しいインスタンスを初期化し、2 つまたは 3 つの状態を持つチェック ボックスを表示するように構成します。 |
DataGridViewCheckBoxColumn()
DataGridViewCheckBoxColumn クラスの新しいインスタンスを既定の状態に初期化します。
public:
DataGridViewCheckBoxColumn();
public DataGridViewCheckBoxColumn ();
Public Sub New ()
注釈
このパラメーターなしのコンストラクターの使用は、コンストラクターに引数 false
を指定することと DataGridViewCheckBoxColumn(Boolean) 同じです。
こちらもご覧ください
適用対象
DataGridViewCheckBoxColumn(Boolean)
DataGridViewCheckBoxColumn の新しいインスタンスを初期化し、2 つまたは 3 つの状態を持つチェック ボックスを表示するように構成します。
public:
DataGridViewCheckBoxColumn(bool threeState);
public DataGridViewCheckBoxColumn (bool threeState);
new System.Windows.Forms.DataGridViewCheckBoxColumn : bool -> System.Windows.Forms.DataGridViewCheckBoxColumn
Public Sub New (threeState As Boolean)
パラメーター
- threeState
- Boolean
3 つの状態を持つチェック ボックスを表示する場合は true
。2 つの状態を持つチェック ボックスを表示する場合は false
。
注釈
このコンストラクターは、次のプロパティを設定して列を初期化します。
プロパティ | 値 |
---|---|
CellTemplate | パラメーター値にThreeState初期化されたプロパティをthreeState 持つ新しいDataGridViewCheckBoxCell値。 |
ThreeState | threeState パラメーターの値。 |
DataGridViewColumn.SortMode | DataGridViewColumnSortMode.NotSortable |
AlignmentプロパティDataGridViewCellStyleによって返されるオブジェクトのDefaultCellStyleプロパティ。 | DataGridViewContentAlignment.MiddleCenter |
NullValueプロパティDataGridViewCellStyleによって返されるオブジェクトのDefaultCellStyleプロパティ。 | CheckState.Indeterminate が threeState の場合は true 。それ以外の場合は false 。 |
こちらもご覧ください
- DataGridView
- DataGridViewCheckBoxCell
- CellTemplate
- ThreeState
- SortMode
- DefaultCellStyle
- DataGridViewCellStyle
- Alignment
- NullValue