IBrush Interface

Summary

Describes how an area is painted.
graph BT Type["IBrush"] class Type type-node Implementing0["SolidColorBrush"]-.->Type click Implementing0 "/api/Avalonia.Media/SolidColorBrush" Implementing1["IImageBrush"]-.->Type click Implementing1 "/api/Avalonia.Media/IImageBrush" Implementing2["IRadialGradientBrush"]-.->Type click Implementing2 "/api/Avalonia.Media/IRadialGradientBrush" Implementing3["LinearGradientBrush"]-.->Type click Implementing3 "/api/Avalonia.Media/LinearGradientBrush" Implementing4["ImageBrush"]-.->Type click Implementing4 "/api/Avalonia.Media/ImageBrush" Implementing5["ImmutableTileBrush"]-.->Type click Implementing5 "/api/Avalonia.Media.Immutable/ImmutableTileBrush" Implementing6["IGradientBrush"]-.->Type click Implementing6 "/api/Avalonia.Media/IGradientBrush" Implementing7["TileBrush"]-.->Type click Implementing7 "/api/Avalonia.Media/TileBrush" Implementing8["GradientBrush"]-.->Type click Implementing8 "/api/Avalonia.Media/GradientBrush" Implementing9["ImmutableSolidColorBrush"]-.->Type click Implementing9 "/api/Avalonia.Media.Immutable/ImmutableSolidColorBrush" Implementing10["VisualBrush"]-.->Type click Implementing10 "/api/Avalonia.Media/VisualBrush" Implementing11["IVisualBrush"]-.->Type click Implementing11 "/api/Avalonia.Media/IVisualBrush" Implementing12["ITileBrush"]-.->Type click Implementing12 "/api/Avalonia.Media/ITileBrush" Implementing13["ImmutableRadialGradientBrush"]-.->Type click Implementing13 "/api/Avalonia.Media.Immutable/ImmutableRadialGradientBrush" Implementing14["ImmutableGradientBrush"]-.->Type click Implementing14 "/api/Avalonia.Media.Immutable/ImmutableGradientBrush" Implementing15["RadialGradientBrush"]-.->Type click Implementing15 "/api/Avalonia.Media/RadialGradientBrush" Implementing16["IMutableBrush"]-.->Type click Implementing16 "/api/Avalonia.Media/IMutableBrush" Implementing17["ISolidColorBrush"]-.->Type click Implementing17 "/api/Avalonia.Media/ISolidColorBrush" Implementing18["ImmutableLinearGradientBrush"]-.->Type click Implementing18 "/api/Avalonia.Media.Immutable/ImmutableLinearGradientBrush" Implementing19["Brush"]-.->Type click Implementing19 "/api/Avalonia.Media/Brush" Implementing20["ILinearGradientBrush"]-.->Type click Implementing20 "/api/Avalonia.Media/ILinearGradientBrush"

Syntax

[TypeConverter(typeof(BrushConverter))]
public interface IBrush

Attributes

Type Description
TypeConverter

Properties

Name Value Summary
Opacity double
Gets the opacity of the brush.

Extension Methods

Name Value Summary
ToImmutable() IBrush
Converts a brush to an immutable brush.