Table of Contents

Class GeometryDrawing

Namespace
Avalonia.Media
Assembly
Avalonia.Base.dll

Represents a drawing operation that combines a geometry with and brush and/or pen to produce rendered content.

public sealed class GeometryDrawing : Drawing, INotifyPropertyChanged
Inheritance
GeometryDrawing
Implements
Inherited Members
Extension Methods

Constructors

GeometryDrawing()

public GeometryDrawing()

Fields

BrushProperty

Defines the Brush property.

public static readonly StyledProperty<IBrush?> BrushProperty

Field Value

StyledProperty<IBrush>

GeometryProperty

Defines the Geometry property.

public static readonly StyledProperty<Geometry?> GeometryProperty

Field Value

StyledProperty<Geometry>

PenProperty

Defines the Pen property.

public static readonly StyledProperty<IPen?> PenProperty

Field Value

StyledProperty<IPen>

Properties

Brush

Gets or sets the IBrush used to fill the interior of the shape described by this GeometryDrawing.

public IBrush? Brush { get; set; }

Property Value

IBrush

Geometry

Gets or sets the Geometry that describes the shape of this GeometryDrawing.

[Content]
public Geometry? Geometry { get; set; }

Property Value

Geometry

Pen

Gets or sets the IPen used to stroke this GeometryDrawing.

public IPen? Pen { get; set; }

Property Value

IPen

Methods

GetBounds()

Gets the drawing's bounding rectangle.

public override Rect GetBounds()

Returns

Rect