DataGridViewColumn.CellType DataGridViewColumn.CellType DataGridViewColumn.CellType DataGridViewColumn.CellType Property

定义

获取单元格模板的运行时类型。Gets the run-time type of the cell template.

public:
 property Type ^ CellType { Type ^ get(); };
[System.ComponentModel.Browsable(false)]
public Type CellType { get; }
member this.CellType : Type
Public ReadOnly Property CellType As Type

属性值

作为此列的模板的 TypeDataGridViewCellThe Type of the DataGridViewCell used as a template for this column. 默认值为 nullThe default is null.

注解

的基类型CellTemplateDataGridViewCellThe base type of the CellTemplate is DataGridViewCell. 使用此属性来确定实际的派生类型。Use this property to determine the actual derived type.

适用于

另请参阅