语言

ToolStripItemCollection.Item[] 属性

定义

获取指定索引处的项。

重载

名称 说明
Item[Int32]

获取指定索引处的项。

Item[String]

获取具有指定名称的项。

Item[Int32]

Source:
ToolStripItemCollection.cs
Source:
ToolStripItemCollection.cs
Source:
ToolStripItemCollection.cs
Source:
ToolStripItemCollection.cs
Source:
ToolStripItemCollection.cs

获取指定索引处的项。

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]

Source:
ToolStripItemCollection.cs
Source:
ToolStripItemCollection.cs
Source:
ToolStripItemCollection.cs
Source:
ToolStripItemCollection.cs
Source:
ToolStripItemCollection.cs

获取具有指定名称的项。

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

要获取的项的名称。

属性值

具有指定名称的 < a0/> 。

适用于