GradientStopCollection.Add(GradientStop) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
在漸變停止的集合中加入 a GradientStop 。
public:
virtual void Add(System::Windows::Media::GradientStop ^ value);
public void Add(System.Windows.Media.GradientStop value);
abstract member Add : System.Windows.Media.GradientStop -> unit
override this.Add : System.Windows.Media.GradientStop -> unit
Public Sub Add (value As GradientStop)
參數
- value
- GradientStop
在 的結尾GradientStop加了 GradientStopCollection 。
實作
例外狀況
value 是 null。
備註
與典型的 實ICollection<T>.Add作不同,這個實作會在你嘗試加入ArgumentExceptionNothing)參考時拋出 。