Windows apps
Collapse the table of content
Expand the table of content
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

GradientStopCollection.Remove Method (GradientStop)


Removes the first occurrence of the specified GradientStop from this GradientStopCollection.

Namespace:   System.Windows.Media
Assembly:  PresentationCore (in PresentationCore.dll)

public bool Remove(
	GradientStop value


Type: System.Windows.Media.GradientStop

The GradientStop to remove from this GradientStopCollection.

Return Value

Type: System.Boolean

true if value was removed from the GradientStopCollection; otherwise, false.

Exception Condition

The GradientStopCollection is read-only.

- or -

The GradientStopCollection has a fixed size.

.NET Framework
Available since 3.0
Return to top
© 2016 Microsoft