Język

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

Definicja

Pobiera lub ustawia wartość GradientStop w określonym indeksie opartym na zerach.

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 zerowy GradientStop klasy , który ma być pobierany lub ustawiany.

Wartość właściwości

Wartość GradientStop w określonym indeksie.

Implementuje

Wyjątki

Parametr value ma wartość 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 błąd ArgumentException w przypadku próby wstawienia odwołania o wartości null (nic).

Dotyczy