Edit

Kongsi melalui


GradientStopCollection.Add(GradientStop) Method

Definition

Adds a GradientStop to the gradient stop collection.

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)

Parameters

value
GradientStop

The GradientStop to add to the end of the GradientStopCollection.

Implements

Exceptions

value is null.

The GradientStopCollection is read-only.

-or-

The GradientStopCollection has a fixed size.

Remarks

Unlike typical implementations of ICollection<T>.Add, this implementation throws an ArgumentException if you attempt to add a null (Nothing) reference.

Applies to

See also