ToolStripItem.Available 屬性

定義

取得或設定值,指出 ToolStripItem 是否應該置於 ToolStrip 上。

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

屬性值

Boolean

如果 ToolStripItem 置於 ToolStrip 上則為 true,否則為 false

屬性

備註

屬性 AvailableVisible 中的 屬性不同,指出 Available 是否 ToolStripItem 顯示 ,同時 Visible 指出 是否 ToolStripItem 顯示 和 其父系。 Available將 或 設定為 trueVisible false 將另一個屬性設定為 truefalse

適用於