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["GradientBrush"]-.->Type click Implementing0 "/api/Avalonia.Media/GradientBrush" Implementing1["IConicGradientBrush"]-.->Type click Implementing1 "/api/Avalonia.Media/IConicGradientBrush" Implementing2["ConicGradientBrush"]-.->Type click Implementing2 "/api/Avalonia.Media/ConicGradientBrush" Implementing3["RadialGradientBrush"]-.->Type click Implementing3 "/api/Avalonia.Media/RadialGradientBrush" Implementing4["LinearGradientBrush"]-.->Type click Implementing4 "/api/Avalonia.Media/LinearGradientBrush" Implementing5["IRadialGradientBrush"]-.->Type click Implementing5 "/api/Avalonia.Media/IRadialGradientBrush" Implementing6["ImmutableGradientBrush"]-.->Type click Implementing6 "/api/Avalonia.Media.Immutable/ImmutableGradientBrush" Implementing7["ImmutableConicGradientBrush"]-.->Type click Implementing7 "/api/Avalonia.Media.Immutable/ImmutableConicGradientBrush" Implementing8["ILinearGradientBrush"]-.->Type click Implementing8 "/api/Avalonia.Media/ILinearGradientBrush" Implementing9["ImmutableRadialGradientBrush"]-.->Type click Implementing9 "/api/Avalonia.Media.Immutable/ImmutableRadialGradientBrush" Implementing10["ImmutableLinearGradientBrush"]-.->Type click Implementing10 "/api/Avalonia.Media.Immutable/ImmutableLinearGradientBrush"

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.