語言

DataGridViewCell.InheritedState 屬性

定義

取得從其列和欄狀態繼承來的儲存格當前狀態。

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。

適用於

另請參閱