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; }
[<System.ComponentModel.Browsable(false)>]
member this.State : System.Windows.Forms.DataGridViewElementStates
Public Overridable ReadOnly Property State As DataGridViewElementStates

属性值

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.

适用于

另请参阅