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

セルの現在の状態を示す DataGridViewElementStates 値のビットごとの組み合わせ。

属性

例外

セルが DataGridView コントロール内に含まれておらず、その RowIndex プロパティの値が -1 ではありません。

セルが DataGridView コントロール内に含まれており、その RowIndex プロパティの値が -1 です。

適用対象

こちらもご覧ください