DataGridViewButtonColumn 构造函数

定义

DataGridViewButtonColumn 类的新实例初始化为默认状态。

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

注解

此构造函数通过设置以下属性初始化列。

properties
CellTemplate 一个新的 DataGridViewButtonCell
属性Alignment返回DefaultCellStyle的对象的属性DataGridViewCellStyle DataGridViewContentAlignment.MiddleCenter

适用于

另请参阅