Skip to main content

IGradientBrush Interface

Definition

Namespace:Avalonia.Media
Assembly:Avalonia.Base
Package:Avalonia

A brush that draws with a gradient.

public interface IGradientBrush
Implements:IBrush

Properties

NameDescription
GradientStopsGets the brush's gradient stops.
SpreadMethodGets the brush's spread method that defines how to draw a gradient that doesn't fill the bounds of the destination control.

GradientStops Property

Gets the brush's gradient stops.

public System.Collections.Generic.IReadOnlyList<Avalonia.Media.IGradientStop> GradientStops { get; set; }

SpreadMethod Property

Gets the brush's spread method that defines how to draw a gradient that doesn't fill the bounds of the destination control.

public Avalonia.Media.GradientSpreadMethod SpreadMethod { get; set; }