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 值的位元 (Bitwise) 組合,表示儲存格的目前狀態。

屬性

例外狀況

儲存格未包含於 DataGridView 控制項之內,而其 RowIndex 屬性的值不是 -1。

儲存格未包含於 DataGridView 控制項之內,而其 RowIndex 屬性的值為 -1。

適用於

另請參閱