GridItemCollection.Item[] Propriété

Définition

Obtient un objet GridItem dans la collection.

Surcharges

Item[Int32]

Obtient l'objet GridItem à l'index spécifié.

Item[String]

Obtient le GridItem ayant l'étiquette correspondante.

Item[Int32]

Obtient l'objet GridItem à l'index spécifié.

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

Paramètres

index
Int32

Index de l'élément de grille à retourner.

Valeur de propriété

GridItem au niveau de l'index spécifié.

S’applique à

Item[String]

Obtient le GridItem ayant l'étiquette correspondante.

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

Paramètres

label
String

Valeur de chaîne à faire correspondre à une étiquette d’élément de grille.

Valeur de propriété

Élément de grille dont l'étiquette correspond au paramètre label.

S’applique à