DataGridViewElement.State DataGridViewElement.State DataGridViewElement.State DataGridViewElement.State Property

定義

取得此項目的使用者介面 (UI) 狀態。Gets the user interface (UI) state of the element.

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

屬性值

表示狀態的 DataGridViewElementStates 值的位元組合。A bitwise combination of the DataGridViewElementStates values representing the state.

備註

所指定的狀態DataGridViewElementStates值強制執行的 UI,但可能會以程式設計方式否決。The states specified by the DataGridViewElementStates values are enforced by the UI but may be programmatically overruled.

適用於

另請參閱