ToolStripItemCollection.Item[] Property

Definition

Gets the item at the specified index.

Overloads

Item[Int32]

Gets the item at the specified index.

Item[String]

Gets the item with the specified name.

Item[Int32]

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

Gets the item at the specified index.

C#
public virtual System.Windows.Forms.ToolStripItem this[int index] { get; }

Parameters

index
Int32

The zero-based index of the item to get.

Property Value

The ToolStripItem located at the specified position in the ToolStripItemCollection.

Applies to

.NET Framework 4.8.1 and other versions
Product Versions
.NET Framework 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
Windows Desktop 3.0, 3.1, 5, 6, 7, 8, 9

Item[String]

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

Gets the item with the specified name.

C#
public virtual System.Windows.Forms.ToolStripItem this[string key] { get; }
C#
public virtual System.Windows.Forms.ToolStripItem? this[string? key] { get; }

Parameters

key
String

The name of the item to get.

Property Value

The ToolStripItem with the specified name.

Applies to

.NET Framework 4.8.1 and other versions
Product Versions
.NET Framework 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
Windows Desktop 3.0, 3.1, 5, 6, 7, 8, 9