DataGridViewCheckBoxColumn Konstruktory

Definice

Inicializuje novou instanci DataGridViewCheckBoxColumn třídy.

Přetížení

DataGridViewCheckBoxColumn()

Inicializuje novou instanci DataGridViewCheckBoxColumn třídy do výchozího stavu.

DataGridViewCheckBoxColumn(Boolean)

Inicializuje novou instanci DataGridViewCheckBoxColumn a nakonfiguruje ji tak, aby zobrazovala zaškrtávací políčka se dvěma nebo třemi stavy.

DataGridViewCheckBoxColumn()

Inicializuje novou instanci DataGridViewCheckBoxColumn třídy do výchozího stavu.

public:
 DataGridViewCheckBoxColumn();
public DataGridViewCheckBoxColumn ();
Public Sub New ()

Poznámky

Použití tohoto konstruktoru bez parametrů je ekvivalentní zadání argumentu false konstruktoru DataGridViewCheckBoxColumn(Boolean) .

Viz také

Platí pro

DataGridViewCheckBoxColumn(Boolean)

Inicializuje novou instanci DataGridViewCheckBoxColumn a nakonfiguruje ji tak, aby zobrazovala zaškrtávací políčka se dvěma nebo třemi stavy.

public:
 DataGridViewCheckBoxColumn(bool threeState);
public DataGridViewCheckBoxColumn (bool threeState);
new System.Windows.Forms.DataGridViewCheckBoxColumn : bool -> System.Windows.Forms.DataGridViewCheckBoxColumn
Public Sub New (threeState As Boolean)

Parametry

threeState
Boolean

true k zobrazení zaškrtávacích políček se třemi stavy; false zobrazí se zaškrtávací políčka se dvěma stavy.

Poznámky

Tento konstruktor inicializuje sloupec nastavením následujících vlastností.

Vlastnost Hodnota
CellTemplate Nová DataGridViewCheckBoxCell vlastnost inicializována ThreeState na hodnotu parametru threeState .
ThreeState Hodnota parametru threeState .
DataGridViewColumn.SortMode DataGridViewColumnSortMode.NotSortable
Alignment Vlastnost objektu DataGridViewCellStyle vráceného DefaultCellStyle vlastností. DataGridViewContentAlignment.MiddleCenter
NullValue Vlastnost objektu DataGridViewCellStyle vráceného DefaultCellStyle vlastností. CheckState.Indeterminate pokud threeState je true; jinak , false.

Viz také

Platí pro