ToolStripItemCollection.Item[] 屬性
定義
取得指定之索引處的項目。Gets the item at the specified index.
多載
Item[Int32] |
取得指定之索引處的項目。Gets the item at the specified index. |
Item[String] |
取得具有指定名稱的項目。Gets the item with the specified name. |
Item[Int32]
取得指定之索引處的項目。Gets the item at the specified index.
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
要取得的項目之索引 (此索引以零為起始)。The zero-based index of the item to get.
屬性值
位於 ToolStripItem 中指定之位置的 ToolStripItemCollection。The ToolStripItem located at the specified position in the ToolStripItemCollection.
適用於
Item[String]
取得具有指定名稱的項目。Gets the item with the specified name.
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; }
member this.Item(string) : System.Windows.Forms.ToolStripItem
Default Public Overridable ReadOnly Property Item(key As String) As ToolStripItem
參數
- key
- String
要取得的項目名稱。The name of the item to get.
屬性值
具有指定名稱的 ToolStripItem。The ToolStripItem with the specified name.