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值强制实施通过用户界面,但可能会按编程方式控制。The states specified by the DataGridViewElementStates values are enforced by the UI but may be programmatically overruled.

适用于

另请参阅