GradientStopCollection.Add(GradientStop) Methode

Definition

Fügt der Farbverlaufstoppauflistung einen hinzu 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)

Parameter

value
GradientStop

The GradientStop to add to the end of the GradientStopCollection.

Implementiert

Ausnahmen

value ist null.

Dies GradientStopCollection ist schreibgeschützt.

-oder-

Die GradientStopCollection Größe hat eine feste Größe.

Hinweise

Im Gegensatz zu typischen Implementierungen von ICollection<T>.Adddieser Implementierung wird ein ArgumentException Fehler ausgelöst, wenn Sie versuchen, einen Nullverweis (Nothing) hinzuzufügen.

Gilt für:

Weitere Informationen