DataGridViewHeaderCell.Visible 属性

定义

获取一个值,该值指示单元格是否可见。Gets a value indicating whether or not the cell is visible.

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

属性值

Boolean

如果该单元格可见,则为 true;否则为 falsetrue if the cell is visible; otherwise, false. 如果单元格从 DataGridView 分离出来,则默认值为 falseThe default is false if the cell is detached from a DataGridView

属性

注解

如果该单元格是一个行标头单元格,则在其行可见且 RowHeadersVisible 属性为时可见 trueIf the cell is a row header cell, then it is visible if its row is visible and the RowHeadersVisible property is true. 如果该单元格为列标头单元格,则其列可见且属性为时,它可见 ColumnHeadersVisible trueIf the cell is a column header cell, then it is visible if its column is visible and the ColumnHeadersVisible property is true. 如果该单元格为左上方标题单元格, RowHeadersVisible 并且和 ColumnHeadersVisible 均为 true,则可见。If the cell is the top left header cell, it is visible if both RowHeadersVisible and ColumnHeadersVisible are true.

适用于

另请参阅