DataGridViewHeaderCell.ButtonState DataGridViewHeaderCell.ButtonState DataGridViewHeaderCell.ButtonState DataGridViewHeaderCell.ButtonState Property

定義

取得標題儲存格的類似於按鈕之視覺化狀態。Gets the buttonlike visual state of the header cell.

protected:
 property System::Windows::Forms::ButtonState ButtonState { System::Windows::Forms::ButtonState get(); };
protected System.Windows.Forms.ButtonState ButtonState { get; }
member this.ButtonState : System.Windows.Forms.ButtonState
Protected ReadOnly Property ButtonState As ButtonState

屬性值

其中一個 ButtonState 值,預設值為 NormalOne of the ButtonState values; the default is Normal.

備註

DataGridViewHeaderCell就像是按鈕, 可以按一下它來設定狀態, 例如排序或執行資料列層級選取。A DataGridViewHeaderCell is like a button in that it can be clicked to set states, such as sorting or performing row-level selection. 屬性會使用System.Windows.Forms.ButtonState值來提供 buttonlike 的視覺狀態。 ButtonStateThe ButtonState property uses System.Windows.Forms.ButtonState values to provide buttonlike visual states.

適用於

另請參閱