ListViewGroupCollection.Item[] Właściwość

Definicja

Pobiera lub ustawia element ListViewGroup w kolekcji.

Przeciążenia

Item[String]

Pobiera lub ustawia ListViewGroup wartość z określoną Name właściwością.

Item[Int32]

Pobiera lub ustawia ListViewGroup wartość w określonym indeksie w kolekcji.

Item[String]

Pobiera lub ustawia ListViewGroup wartość z określoną Name właściwością.

public:
 property System::Windows::Forms::ListViewGroup ^ default[System::String ^] { System::Windows::Forms::ListViewGroup ^ get(System::String ^ key); void set(System::String ^ key, System::Windows::Forms::ListViewGroup ^ value); };
public System.Windows.Forms.ListViewGroup this[string key] { get; set; }
public System.Windows.Forms.ListViewGroup? this[string key] { get; set; }
member this.Item(string) : System.Windows.Forms.ListViewGroup with get, set
Default Public Property Item(key As String) As ListViewGroup

Parametry

key
String

Nazwa grupy do pobrania lub ustawienia.

Wartość właściwości

Element ListViewGroup o określonej nazwie lub null jeśli tak nie ListViewGroup istnieje.

Dotyczy

Item[Int32]

Pobiera lub ustawia ListViewGroup wartość w określonym indeksie w kolekcji.

public:
 property System::Windows::Forms::ListViewGroup ^ default[int] { System::Windows::Forms::ListViewGroup ^ get(int index); void set(int index, System::Windows::Forms::ListViewGroup ^ value); };
public System.Windows.Forms.ListViewGroup this[int index] { get; set; }
member this.Item(int) : System.Windows.Forms.ListViewGroup with get, set
Default Public Property Item(index As Integer) As ListViewGroup

Parametry

index
Int32

Indeks w kolekcji ListViewGroup , aby pobrać lub ustawić.

Wartość właściwości

Element ListViewGroup w określonym indeksie w kolekcji.

Wyjątki

index wartość jest mniejsza niż 0 lub większa niż lub równa Count.

Uwagi

Użyj tej właściwości, aby pobrać grupę w określonym indeksie w kolekcji. Jeśli masz odwołanie do obiektu grupy i potrzebujesz indeksu IndexOf , użyj metody .

Dotyczy