GradientStopCollection.Item[Int32] プロパティ

定義

0 から始まる指定したインデックス位置にある GradientStop を取得または設定します。

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

パラメーター

index
Int32

取得または設定する GradientStop の 0 から始まるインデックス番号。

プロパティ値

GradientStop

指定したインデックスにある GradientStop です。

実装

例外

valuenullです。

indexGradientStopCollection の有効なインデックスではありません。

GradientStopCollection は読み取り専用です。

注釈

一般的な実装IList<T>.Item[]とは異なり、この実装では null (Nothing) 参照を挿入しようとすると、an がスローArgumentExceptionされます。

適用対象