ToolBarState 列舉

定義

指定利用視覺化樣式繪製的工具列項目之可見狀態。Specifies the visual state of a toolbar item that is drawn with visual styles.

public enum class ToolBarState
public enum ToolBarState
type ToolBarState = 
Public Enum ToolBarState
繼承
ToolBarState

欄位

Checked 5

項目處於選取狀態。The item is in the checked state.

Disabled 4

項目處於停用狀態。The item is in the disabled state.

Hot 2

項目處於作用中狀態。The item is in the hot state.

HotChecked 6

項目處於作用中且選取狀態。The item is in the hot and checked states.

Normal 1

項目處於正常狀態。The item is in the normal state.

Pressed 3

項目處於已按下狀態。The item is in the pressed state.

備註

這些ToolBarState值會對應至VisualStyleElement.ToolBar.ButtonVisualStyleElement VisualStyleElement.ToolBar.DropDownButtonVisualStyleElement.ToolBar.SplitButton和類別所公開的物件狀態。VisualStyleElement.ToolBar.SplitButtonDropDownThe ToolBarState values correspond to the states of the VisualStyleElement objects exposed by the VisualStyleElement.ToolBar.Button, VisualStyleElement.ToolBar.DropDownButton, VisualStyleElement.ToolBar.SplitButton, and VisualStyleElement.ToolBar.SplitButtonDropDown classes.

適用於