DataGridViewHeaderCell.Frozen DataGridViewHeaderCell.Frozen DataGridViewHeaderCell.Frozen DataGridViewHeaderCell.Frozen Property

定义

获取指示单元格是否已被冻结的值。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; }
member this.Frozen : bool
Public Overrides ReadOnly Property Frozen As 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

适用于

另请参阅