Skip to content

GradientBrush class

Base class for gradient brushes.

The color stops are copied into a private array at construction, so a gradient brush is fully immutable regardless of the list the caller supplies.

public abstract class GradientBrush : Brush
name description
GradientTransform { get; } Gets an optional additional transform applied to the gradient geometry, or null for no additional transform.
GradientUnits { get; } Gets the coordinate space used for gradient geometry.
SpreadMethod { get; } Gets how the gradient extends beyond its defined bounds.
Stops { get; } Gets the color stops that define the gradient.