Table of Contents

Class LinearGradientBrush

Namespace
Avalonia.Media
Assembly
Avalonia.Base.dll

A brush that draws with a linear gradient.

public sealed class LinearGradientBrush : GradientBrush, INotifyPropertyChanged, ILinearGradientBrush, IGradientBrush, IBrush
Inheritance
LinearGradientBrush
Implements
Inherited Members
Extension Methods

Constructors

LinearGradientBrush()

public LinearGradientBrush()

Fields

EndPointProperty

Defines the EndPoint property.

public static readonly StyledProperty<RelativePoint> EndPointProperty

Field Value

StyledProperty<RelativePoint>

StartPointProperty

Defines the StartPoint property.

public static readonly StyledProperty<RelativePoint> StartPointProperty

Field Value

StyledProperty<RelativePoint>

Properties

EndPoint

Gets or sets the end point for the gradient.

public RelativePoint EndPoint { get; set; }

Property Value

RelativePoint

StartPoint

Gets or sets the start point for the gradient.

public RelativePoint StartPoint { get; set; }

Property Value

RelativePoint

Methods

ToImmutable()

Creates an immutable clone of the brush.

public override IImmutableBrush ToImmutable()

Returns

IImmutableBrush

The immutable clone.