ToolStripItemCollection.Item[] 屬性
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
取得指定索引的項目。
多載
| 名稱 | Description |
|---|---|
| Item[Int32] |
取得指定索引的項目。 |
| Item[String] |
取得指定名稱的物品。 |
Item[Int32]
取得指定索引的項目。
public:
virtual property System::Windows::Forms::ToolStripItem ^ default[int] { System::Windows::Forms::ToolStripItem ^ get(int index); };
public virtual System.Windows.Forms.ToolStripItem this[int index] { get; }
member this.Item(int) : System.Windows.Forms.ToolStripItem
Default Public Overridable ReadOnly Property Item(index As Integer) As ToolStripItem
參數
- index
- Int32
要取得的項目的零基指數。
屬性值
位於ToolStripItem指定位置。ToolStripItemCollection
適用於
Item[String]
取得指定名稱的物品。
public:
virtual property System::Windows::Forms::ToolStripItem ^ default[System::String ^] { System::Windows::Forms::ToolStripItem ^ get(System::String ^ key); };
public virtual System.Windows.Forms.ToolStripItem this[string key] { get; }
public virtual System.Windows.Forms.ToolStripItem? this[string? key] { get; }
member this.Item(string) : System.Windows.Forms.ToolStripItem
Default Public Overridable ReadOnly Property Item(key As String) As ToolStripItem
參數
- key
- String
要取得的物品名稱。
屬性值
這些 ToolStripItem 名稱就是指定的。