GradientStopCollection.Clear Method ()


The .NET API Reference documentation has a new home. Visit the .NET API Browser on to see the new experience.

Removes all items from the gradient stop list.

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

public void Clear()

Exception Condition

The GradientStopCollection is read-only.

This method does not change the capacity of the GradientStopCollection.

.NET Framework
Available since 3.0
Return to top