IGradientBrush Interface

Summary

A brush that draws with a gradient.
graph BT Type-.->Interface0["IBrush"] click Interface0 "/api/Avalonia.Media/IBrush" Type["IGradientBrush"] class Type type-node Implementing0["IRadialGradientBrush"]-.->Type click Implementing0 "/api/Avalonia.Media/IRadialGradientBrush" Implementing1["LinearGradientBrush"]-.->Type click Implementing1 "/api/Avalonia.Media/LinearGradientBrush" Implementing2["GradientBrush"]-.->Type click Implementing2 "/api/Avalonia.Media/GradientBrush" Implementing3["ImmutableRadialGradientBrush"]-.->Type click Implementing3 "/api/Avalonia.Media.Immutable/ImmutableRadialGradientBrush" Implementing4["ImmutableGradientBrush"]-.->Type click Implementing4 "/api/Avalonia.Media.Immutable/ImmutableGradientBrush" Implementing5["RadialGradientBrush"]-.->Type click Implementing5 "/api/Avalonia.Media/RadialGradientBrush" Implementing6["ImmutableLinearGradientBrush"]-.->Type click Implementing6 "/api/Avalonia.Media.Immutable/ImmutableLinearGradientBrush" Implementing7["ILinearGradientBrush"]-.->Type click Implementing7 "/api/Avalonia.Media/ILinearGradientBrush"

Syntax

public interface IGradientBrush : IBrush

Properties

Name Value Summary
GradientStops IReadOnlyList<IGradientStop>
Gets the brush's gradient stops.
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.