DataGridViewColumn DataGridViewColumn DataGridViewColumn DataGridViewColumn Constructors

定義

多載

DataGridViewColumn() DataGridViewColumn() DataGridViewColumn()

初始化 DataGridViewColumn 類別的新執行個體為預設狀態。Initializes a new instance of the DataGridViewColumn class to the default state.

DataGridViewColumn(DataGridViewCell) DataGridViewColumn(DataGridViewCell) DataGridViewColumn(DataGridViewCell) DataGridViewColumn(DataGridViewCell)

使用現有的 DataGridViewColumn 做為樣板,初始化 DataGridViewCell 類別的新執行個體。Initializes a new instance of the DataGridViewColumn class using an existing DataGridViewCell as a template.

DataGridViewColumn() DataGridViewColumn() DataGridViewColumn()

初始化 DataGridViewColumn 類別的新執行個體為預設狀態。Initializes a new instance of the DataGridViewColumn class to the default state.

public:
 DataGridViewColumn();
public DataGridViewColumn ();
Public Sub New ()
另請參閱

DataGridViewColumn(DataGridViewCell) DataGridViewColumn(DataGridViewCell) DataGridViewColumn(DataGridViewCell) DataGridViewColumn(DataGridViewCell)

使用現有的 DataGridViewColumn 做為樣板,初始化 DataGridViewCell 類別的新執行個體。Initializes a new instance of the DataGridViewColumn class using an existing DataGridViewCell as a template.

public:
 DataGridViewColumn(System::Windows::Forms::DataGridViewCell ^ cellTemplate);
public DataGridViewColumn (System.Windows.Forms.DataGridViewCell cellTemplate);
new System.Windows.Forms.DataGridViewColumn : System.Windows.Forms.DataGridViewCell -> System.Windows.Forms.DataGridViewColumn
Public Sub New (cellTemplate As DataGridViewCell)

參數

cellTemplate
DataGridViewCell DataGridViewCell DataGridViewCell DataGridViewCell

要用來做為樣板的現有 DataGridViewCellAn existing DataGridViewCell to use as a template.

備註

此函式會CellTemplate將屬性設定為cellTemplate參數的值。This constructor sets the CellTemplate property to the value of the cellTemplate parameter.

另請參閱

適用於