DataGridViewCell.InheritedState 屬性
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
取得從其列和欄狀態繼承來的儲存格當前狀態。
public:
property System::Windows::Forms::DataGridViewElementStates InheritedState { System::Windows::Forms::DataGridViewElementStates get(); };
[System.ComponentModel.Browsable(false)]
public System.Windows.Forms.DataGridViewElementStates InheritedState { get; }
[<System.ComponentModel.Browsable(false)>]
member this.InheritedState : System.Windows.Forms.DataGridViewElementStates
Public ReadOnly Property InheritedState As DataGridViewElementStates
屬性值
一個位元組合 DataGridViewElementStates 的值,代表細胞當前狀態。
- 屬性
例外狀況
該單元格不包含在控制 DataGridView 範圍內,其 RowIndex 屬性值也不是 -1。
該單元格包含在一個 DataGridView 控制項內,其 RowIndex 屬性值為 -1。