ToolStripItem.Enabled ToolStripItem.Enabled ToolStripItem.Enabled ToolStripItem.Enabled Property

定义

获取或设置一个值,该值指示是否启用了 ToolStripItem 的父控件。Gets or sets a value indicating whether the parent control of the ToolStripItem is enabled.

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

属性值

如果启用了 ToolStripItem 的父控件,则为 true;否则为 falsetrue if the parent control of the ToolStripItem is enabled; otherwise, false. 默认值为 trueThe default is true.

适用于