DataGridViewCell.InheritedState DataGridViewCell.InheritedState DataGridViewCell.InheritedState DataGridViewCell.InheritedState Property

定義

取得儲存格的目前狀態,是繼承其資料列和資料行的狀態。Gets the current state of the cell as inherited from the state of its row and column.

public:
 property System::Windows::Forms::DataGridViewElementStates InheritedState { System::Windows::Forms::DataGridViewElementStates get(); };
[System.ComponentModel.Browsable(false)]
public System.Windows.Forms.DataGridViewElementStates InheritedState { get; }
member this.InheritedState : System.Windows.Forms.DataGridViewElementStates
Public ReadOnly Property InheritedState As DataGridViewElementStates

屬性值

DataGridViewElementStates 值的位元 (Bitwise) 組合,表示儲存格的目前狀態。A bitwise combination of DataGridViewElementStates values representing the current state of the cell.

例外狀況

儲存格未包含於 DataGridView 控制項之內,而其 RowIndex 屬性的值不是 -1。The cell is not contained within a DataGridView control and the value of its RowIndex property is not -1.

儲存格未包含於 DataGridView 控制項之內,而其 RowIndex 屬性的值為 -1。The cell is contained within a DataGridView control and the value of its RowIndex property is -1.

適用於

另請參閱