GradientStopCollection.Item[Int32] Vlastnost

Definice

Získá nebo nastaví hodnotu v zadaném indexu založeném GradientStop na nule.

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

Index založený na nule, který GradientStop chcete získat nebo nastavit.

Hodnota vlastnosti

GradientStop

V GradientStop zadaném indexu.

Implementuje

Výjimky

value je null.

index není platný index v souboru GradientStopCollection.

Jedná se GradientStopCollection o jen pro čtení.

-nebo- Má GradientStopCollection pevnou velikost.

Poznámky

Na rozdíl od typických IList<T>.Item[]implementací tato implementace vyvolá ArgumentException , pokud se pokusíte vložit odkaz null (Nothing).

Platí pro