ToolStripItem.Available ToolStripItem.Available ToolStripItem.Available ToolStripItem.Available Property

定义

获取或设置一个值,该值指示是否应该将 ToolStripItem 放置在 ToolStrip 上。Gets or sets a value indicating whether the ToolStripItem should be placed on a ToolStrip.

public:
 property bool Available { bool get(); void set(bool value); };
[System.ComponentModel.Browsable(false)]
public bool Available { get; set; }
member this.Available : bool with get, set
Public Property Available As Boolean

属性值

如果 ToolStripItem 放置在 ToolStrip 上,则为 true;否则为 falsetrue if the ToolStripItem is placed on a ToolStrip; otherwise, false.

注解

Visible ToolStripItem 属性不同ToolStripItem于中的Available 属性,该属性指示是否显示,而指示是否显示及其父项。Visible AvailableThe Available property is different from the Visible property in that Available indicates whether the ToolStripItem is shown, while Visible indicates whether the ToolStripItem and its parent are shown. Availabletrue falseVisible 设置为或将另一个属性设置为或。false trueSetting either Available or Visible to true or false sets the other property to true or false.

适用于