ImmutableGradientBrush Class

Summary

A brush that draws with a gradient.
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

Properties

Name Value Summary
GradientStops IReadOnlyList<IGradientStop>
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.