GradientStopCollection.Add(GradientStop) 方法

定義

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

實作

例外狀況

valuenull

GradientStopCollection 為唯讀。

-或- GradientStopCollection 具有固定的大小。

備註

不同于 的一般實作,如果您嘗試新增 null (Nothing) 參考,這個實作 ICollection<T>.AddArgumentException 擲回 。

適用於

另請參閱