Summary
A brush that draws with a gradient.
- Namespace
- Avalonia
.Media .Immutable - Interfaces
- Base Types
-
- object
- Derived Types
graph BT
Type-->Base0["object"]
Type-.->Interface0["IGradientBrush"]
click Interface0 "/api/Avalonia.Media/IGradientBrush"
Type-.->Interface1["IBrush"]
click Interface1 "/api/Avalonia.Media/IBrush"
Type["ImmutableGradientBrush"]
class Type type-node
Derived0["ImmutableConicGradientBrush"]-->Type
click Derived0 "/api/Avalonia.Media.Immutable/ImmutableConicGradientBrush"
Derived1["ImmutableRadialGradientBrush"]-->Type
click Derived1 "/api/Avalonia.Media.Immutable/ImmutableRadialGradientBrush"
Derived2["ImmutableLinearGradientBrush"]-->Type
click Derived2 "/api/Avalonia.Media.Immutable/ImmutableLinearGradientBrush"
Syntax
public abstract class ImmutableGradientBrush : IGradientBrush, IBrush
Constructors
Name | Summary |
---|---|
Immutable |
Initializes a new instance of the ImmutableGradientBrush class.
|
Immutable |
Initializes a new instance of the ImmutableGradientBrush class.
|
Properties
Name | Value | Summary |
---|---|---|
GradientStops | IReadOnlyList |
Gets the brush's gradient stops.
|
Opacity | double |
Gets the opacity of the brush.
|
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.
|
Extension Methods
Name | Value | Summary |
---|---|---|
ToImmutable |
IBrush |
Converts a brush to an immutable brush.
From BrushExtensions
|