DataGridViewElement.State 屬性

定義

取得此項目的使用者介面 (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.

適用於

另請參閱