DataGridViewElement.State Property

Definition

获取元素的用户界面 (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

Property Value

DataGridViewElementStates

表示状态的 DataGridViewElementStates 值的按位组合。A bitwise combination of the DataGridViewElementStates values representing the state.

Attributes

Remarks

DataGridViewElementStates 值指定的状态由 UI 强制执行,但可能以编程方式无效。The states specified by the DataGridViewElementStates values are enforced by the UI but may be programmatically overruled.

Applies to

See also