LinearGradientBrush Class
A brush that draws with a linear gradient.
Definition
Namespace: Avalonia.Media
Assembly: Avalonia.Base (in Avalonia.Base.dll)
- C#
- VB
- F#
public sealed class LinearGradientBrush : GradientBrush,
ILinearGradientBrush, IGradientBrush, IBrush
Public NotInheritable Class LinearGradientBrush
Inherits GradientBrush
Implements ILinearGradientBrush, IGradientBrush, IBrush
[<SealedAttribute>]
type LinearGradientBrush =
class
inherit GradientBrush
interface ILinearGradientBrush
interface IGradientBrush
interface IBrush
end
Inheritance | Object → AvaloniaObject → Animatable → Brush → GradientBrush → LinearGradientBrush |
Implements | IBrush, IGradientBrush, ILinearGradientBrush |
Constructors
LinearGradientBrush() | Initializes a new instance of the LinearGradientBrush class |
Properties
EndPoint | Gets or sets the end point for the gradient. |
GradientStops | (Inherited from GradientBrush) |
Item(AvaloniaProperty) | Gets or sets the value of a AvaloniaProperty. (Inherited from AvaloniaObject) |
Item(IndexerDescriptor) | Gets or sets a binding for a AvaloniaProperty. (Inherited from AvaloniaObject) |
Opacity | Gets or sets the opacity of the brush. (Inherited from Brush) |
SpreadMethod | Gets the brush's spread method that defines how to draw a gradient that doesn't fill the bounds of the destination control. (Inherited from GradientBrush) |
StartPoint | Gets or sets the start point for the gradient. |
Transform | Gets or sets the transform of the brush. (Inherited from Brush) |
TransformOrigin | Gets or sets the origin of the brush Transform (Inherited from Brush) |
Transitions | Gets or sets the property transitions for the control. (Inherited from Animatable) |
Methods
Events
PropertyChanged | Raised when a AvaloniaProperty value changes on this object. (Inherited from AvaloniaObject) |
Fields
EndPointProperty | Defines the EndPoint property. |
StartPointProperty | Defines the StartPoint property. |