DataGridViewCheckBoxColumn コンストラクター

定義

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.IndeterminatethreeState の場合は true。それ以外の場合は false

こちらもご覧ください

適用対象