Skip to main content

ImmutableGradientBrush Class

Definition

Assembly:Avalonia.Base
Package:Avalonia

A brush that draws with a gradient.

public class ImmutableGradientBrush

Inheritance: object -> ImmutableGradientBrush

Properties

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

GradientStops Property

Gets the brush's gradient stops.

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

Opacity Property

Gets the opacity of the brush.

public double Opacity { 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; }

Transform Property

Gets the transform of the brush.

public Avalonia.Media.ITransform Transform { get; set; }

TransformOrigin Property

Gets the transform origin of the brush

public Avalonia.RelativePoint TransformOrigin { get; set; }