GradientStopCollection.Item[Int32] 屬性
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
取得或設定指定之以零起始的索引處 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
就是 to get 或 set 的 GradientStop 零基指數。
屬性值
在指定的索引上。GradientStop
實作
例外狀況
value 是 null。
index 在 中 不是有效的索引 GradientStopCollection。
備註
與典型的 實IList<T>.Item[]作不同,這個實作會在你嘗試插入ArgumentExceptionNothing)參考時拋出 。