Udostępnij za pośrednictwem


TabControl.TabPageCollection.Item[] Właściwość

Definicja

Pobiera lub ustawia stronę karty w kolekcji.

Przeciążenia

Nazwa Opis
Item[Int32]

Pobiera lub ustawia element TabPage w kolekcji.

Item[String]

Pobiera stronę karty z określonym kluczem z kolekcji.

Item[Int32]

Źródło:
TabControl.TabPageCollection.cs
Źródło:
TabControl.TabPageCollection.cs
Źródło:
TabControl.TabPageCollection.cs
Źródło:
TabControl.TabPageCollection.cs
Źródło:
TabControl.TabPageCollection.cs

Pobiera lub ustawia element TabPage w kolekcji.

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

Parametry

index
Int32

Indeks na podstawie zera strony karty, który ma być pobierany lub ustawiany.

Wartość właściwości

Wartość TabPage w określonym indeksie.

Wyjątki

index jest mniejsza niż zero lub większa niż najwyższy dostępny indeks.

Zobacz też

Dotyczy

Item[String]

Źródło:
TabControl.TabPageCollection.cs
Źródło:
TabControl.TabPageCollection.cs
Źródło:
TabControl.TabPageCollection.cs
Źródło:
TabControl.TabPageCollection.cs
Źródło:
TabControl.TabPageCollection.cs

Pobiera stronę karty z określonym kluczem z kolekcji.

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

Parametry

key
String

Nazwa strony karty do pobrania.

Wartość właściwości

Element TabPage z określonym kluczem.

Uwagi

Właściwość Name odpowiada kluczowi obiektu TabPage w obiekcie TabControl.TabPageCollection.

Kluczowe porównanie nie uwzględnia wielkości liter. key Jeśli parametr jest null lub jest pustym ciągiem, Item[] zwraca wartość null.

Dotyczy