GridItemCollection.Item[] Property

Definition

Gets a GridItem from the collection.

Overloads

Item[Int32]

Gets the GridItem at the specified index.

Item[String]

Gets the GridItem with the matching label.

Item[Int32]

Source:
GridItemCollection.cs
Source:
GridItemCollection.cs
Source:
GridItemCollection.cs

Gets the GridItem at the specified index.

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

Parameters

index
Int32

The index of the grid item to return.

Property Value

The GridItem at the specified index.

Applies to

.NET Framework 4.8.1 ve diğer sürümler
Ürün Sürümler
.NET Framework 1.1, 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, 10

Item[String]

Source:
GridItemCollection.cs
Source:
GridItemCollection.cs
Source:
GridItemCollection.cs

Gets the GridItem with the matching label.

C#
public System.Windows.Forms.GridItem this[string label] { get; }
C#
public System.Windows.Forms.GridItem? this[string label] { get; }

Parameters

label
String

A string value to match to a grid item label.

Property Value

The grid item whose label matches the label parameter.

Applies to

.NET Framework 4.8.1 ve diğer sürümler
Ürün Sürümler
.NET Framework 1.1, 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, 10