GradientStopCollection.Item[Int32] Właściwość

Definicja

Pobiera lub ustawia GradientStop wartość w określonym indeksie zerowym.

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

Parametry

index
Int32

Indeks oparty na zerowej GradientStop wartości parametru do pobrania lub ustawienia.

Wartość właściwości

GradientStop

Element GradientStop w określonym indeksie.

Implementuje

Wyjątki

value to null.

index nie jest prawidłowym indeksem w obiekcie GradientStopCollection.

Element GradientStopCollection jest tylko do odczytu.

-lub- Element GradientStopCollection ma stały rozmiar.

Uwagi

W przeciwieństwie do typowych implementacji IList<T>.Item[]programu ta implementacja zgłasza ArgumentException błąd, jeśli próbujesz wstawić odwołanie o wartości null (nic).

Dotyczy