Summary
A brush that draws with a linear gradient.
- Namespace
- Avalonia
.Media .Immutable - Interfaces
- Base Types
-
- object
- Immutable
Gradient Brush
graph BT
Type-->Base0["ImmutableGradientBrush"]
click Base0 "/api/Avalonia.Media.Immutable/ImmutableGradientBrush"
Base0-->Base1["object"]
Type-.->Interface0["ILinearGradientBrush"]
click Interface0 "/api/Avalonia.Media/ILinearGradientBrush"
Type-.->Interface1["IGradientBrush"]
click Interface1 "/api/Avalonia.Media/IGradientBrush"
Type-.->Interface2["IBrush"]
click Interface2 "/api/Avalonia.Media/IBrush"
Type["ImmutableLinearGradientBrush"]
class Type type-node
Syntax
public class ImmutableLinearGradientBrush : ImmutableGradientBrush, ILinearGradientBrush,
IGradientBrush, IBrush
Constructors
Name | Summary |
---|---|
Immutable |
Initializes a new instance of the ImmutableLinearGradientBrush class.
|
Immutable |
Initializes a new instance of the ImmutableLinearGradientBrush class.
|
Properties
Name | Value | Summary |
---|---|---|
EndPoint | RelativePoint |
Gets or sets the end point for the gradient.
|
GradientStops | IReadOnlyList |
Gets the brush's gradient stops.
Inherited from Immutable
|
Opacity | double |
Gets the opacity of the brush.
Inherited from Immutable
|
SpreadMethod | GradientSpreadMethod |
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 Immutable
|
StartPoint | RelativePoint |
Gets or sets the start point for the gradient.
|
Extension Methods
Name | Value | Summary |
---|---|---|
ToImmutable |
IBrush |
Converts a brush to an immutable brush.
From BrushExtensions
|