ToolStripItemCollection.Item[String] ToolStripItemCollection.Item[String] ToolStripItemCollection.Item[String] ToolStripItemCollection.Item[String] Property

定义

重载

Item[Int32] Item[Int32] Item[Int32] Item[Int32]

获取指定索引处的项。Gets the item at the specified index.

Item[String] Item[String] Item[String] Item[String]

获取具有指定名称的项。Gets the item with the specified name.

Item[Int32] Item[Int32] Item[Int32] 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 Int32 Int32 Int32

要获取的项的索引(索引从零开始)。The zero-based index of the item to get.

属性值

Item[String] Item[String] Item[String] 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 String String String

要获取的项的名称。The name of the item to get.

属性值

具有指定名称的 ToolStripItemThe ToolStripItem with the specified name.

适用于