DataGridViewHeaderCell.Frozen 属性

定义

获取指示单元格是否已被冻结的值。Gets a value indicating whether the cell is frozen.

public:
 virtual property bool Frozen { bool get(); };
[System.ComponentModel.Browsable(false)]
public override bool Frozen { get; }
[<System.ComponentModel.Browsable(false)>]
member this.Frozen : bool
Public Overrides ReadOnly Property Frozen As Boolean

属性值

Boolean

如果该单元格已被冻结,则为 true;否则为 falsetrue if the cell is frozen; otherwise, false. 如果单元格从 DataGridView 分离出,则默认值为 falseThe default is false if the cell is detached from a DataGridView.

属性

注解

Frozen true 如果单元属于冻结的行或列,则为; 如果该单元格为左上角的标题单元格,则为。The Frozen property is true if the cell belongs to a frozen row or column, or if the cell is the top-left header cell. 当单元格、行或列的 State 属性值为 DataGridViewElementStates.FrozenA cell, row, or column is frozen when its State property has a value of DataGridViewElementStates.Frozen

适用于

另请参阅