ToolBarButton.Enabled 属性

定义

获取或设置一个值,该值指示是否启用此按钮。Gets or sets a value indicating whether the button is enabled.

public:
 property bool Enabled { bool get(); void set(bool value); };
public bool Enabled { get; set; }
member this.Enabled : bool with get, set
Public Property Enabled As Boolean

属性值

Boolean

如果启用此按钮,则为 true;否则为 falsetrue if the button is enabled; otherwise, false. 默认值为 trueThe default is true.

注解

Enabled 属性设置为时 false ,不能单击工具栏按钮,按钮的外观也会改变。When the Enabled property is set to false, the toolbar button cannot be clicked, and the button's appearance changes. Image Text 分配给按钮的和显示灰显。如果图像或文本有多种颜色,它们将显示为单色灰色。The Image and Text assigned to the button appear grayed out. If the image or text has multiple colors, they display in a monochromatic gray.

适用于