Skip to main content

ILinearGradientBrush Interface

Not client implementable.

Note: This interface is not client implementable. You need to enable PrivateApi if you want to implement this interface.

A brush that draws with a linear gradient.

Definition

Namespace: Avalonia.Media
Assembly: Avalonia.Base (in Avalonia.Base.dll)

[NotClientImplementableAttribute]
public interface ILinearGradientBrush : IGradientBrush,
IBrush
View Source
ImplementsIBrush, IGradientBrush

Properties

EndPointGets or sets the end point for the gradient.
GradientStopsGets the brush's gradient stops.
(Inherited from IGradientBrush)
OpacityGets the opacity of the brush.
(Inherited from IBrush)
SpreadMethodGets the brush's spread method that defines how to draw a gradient that doesn't fill the bounds of the destination control.
(Inherited from IGradientBrush)
StartPointGets or sets the start point for the gradient.
TransformGets the transform of the brush.
(Inherited from IBrush)
TransformOriginGets the origin of the brushes Transform
(Inherited from IBrush)

Extension Methods

ToImmutable()Converts a brush to an immutable brush.
(Defined by BrushExtensions)

See Also

Reference

Avalonia.Media Namespace