DataGridViewButtonColumn 建構函式
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
初始化 DataGridViewButtonColumn 類別的新執行個體為預設狀態。
public:
DataGridViewButtonColumn();
public DataGridViewButtonColumn ();
Public Sub New ()
備註
此建構函式會藉由設定下列屬性來初始化資料行。
屬性 | 值 |
---|---|
CellTemplate | 新的 DataGridViewButtonCell。 |
Alignment屬性所 DefaultCellStyle 傳回之 物件的 屬性 DataGridViewCellStyle 。 | DataGridViewContentAlignment.MiddleCenter |