Edit

Share via


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.

public:
 property System::Windows::Forms::GridItem ^ default[int] { System::Windows::Forms::GridItem ^ get(int index); };
public System.Windows.Forms.GridItem this[int index] { get; }
member this.Item(int) : System.Windows.Forms.GridItem
Default Public ReadOnly Property Item(index As Integer) As GridItem

Parameters

index
Int32

The index of the grid item to return.

Property Value

The GridItem at the specified index.

Applies to

Item[String]

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

Gets the GridItem with the matching label.

public:
 property System::Windows::Forms::GridItem ^ default[System::String ^] { System::Windows::Forms::GridItem ^ get(System::String ^ label); };
public System.Windows.Forms.GridItem this[string label] { get; }
public System.Windows.Forms.GridItem? this[string label] { get; }
member this.Item(string) : System.Windows.Forms.GridItem
Default Public ReadOnly Property Item(label As String) As GridItem

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