Skip to main content

RectangleAnnotation Class

Definition

Assembly:Avalonia.Controls.Charts
Package:Avalonia.Controls.Charts

A rectangle annotation placed at specific coordinates.

public class RectangleAnnotation

Inheritance: object -> AvaloniaObject -> ChartAnnotation -> RectangleAnnotation

Constructors

NameDescription
RectangleAnnotationNo summary available.

RectangleAnnotation Constructor

public RectangleAnnotation()

Methods

NameDescription
Bind (8 overloads)Binds a Avalonia.AvaloniaProperty to an Avalonia.Data.BindingBase. Inherited from AvaloniaObject.
CheckAccessReturns a value indicating whether the current thread is the UI thread. Inherited from AvaloniaObject.
ClearValue (4 overloads)Clears a Avalonia.AvaloniaProperty's local value. Inherited from AvaloniaObject.
CoerceValueCoerces the specified Avalonia.AvaloniaProperty. Inherited from AvaloniaObject.
EqualsCompares two objects using reference equality. Inherited from AvaloniaObject.
GetBaseValueInherited from AvaloniaObject.
GetHashCodeGets the hash code for the object. Inherited from AvaloniaObject.
GetValue (3 overloads)Gets a Avalonia.AvaloniaProperty value. Inherited from AvaloniaObject.
IsAnimatingChecks whether a Avalonia.AvaloniaProperty is animating. Inherited from AvaloniaObject.
IsSetChecks whether a Avalonia.AvaloniaProperty is set on this object. Inherited from AvaloniaObject.
SetCurrentValue (2 overloads)Sets the value of a dependency property without changing its value source. Inherited from AvaloniaObject.
SetValue (3 overloads)Sets a Avalonia.AvaloniaProperty value. Inherited from AvaloniaObject.
VerifyAccessChecks that the current thread is the UI thread and throws if not. Inherited from AvaloniaObject.

Properties

NameDescription
CornerRadiusGets or sets the corner radius.
FillGets or sets the fill brush.
HeightGets or sets the height in vertical axis units.
LabelGets or sets the label text.
WidthGets or sets the width in horizontal axis units.
XGets or sets the left X axis value.
YGets or sets the lower Y axis value.
FontSizeGets or sets the font size used for annotation text or labels. Inherited from ChartAnnotation.
ForegroundGets or sets the brush used for annotation text or labels. When unset, text-capable annotations fall back to their local defaults or to Avalonia.Controls.Charts.ChartAnnotation.Stroke where appropriate. Inherited from ChartAnnotation.
IsBandAnnotationGets whether this annotation is a band annotation. Used by the rendering pipeline to distinguish bands from line/text annotations without requiring a cross-assembly type check. Inherited from ChartAnnotation.
IsVisibleGets or sets whether this annotation is visible. Inherited from ChartAnnotation.
OpacityGets or sets the opacity applied to the entire annotation. Inherited from ChartAnnotation.
StrokeGets or sets the stroke brush for annotation geometry. Text-based annotations can also use this as an outline brush. Inherited from ChartAnnotation.
StrokeThicknessGets or sets the stroke thickness for annotation geometry or text outlines. Inherited from ChartAnnotation.
DispatcherReturns the Avalonia.AvaloniaObject.Dispatcher that this Avalonia.AvaloniaObject is associated with. Inherited from AvaloniaObject.
ItemInherited from AvaloniaObject.

CornerRadius Property

Gets or sets the corner radius.

public Avalonia.CornerRadius CornerRadius { get; set; }

Fill Property

Gets or sets the fill brush.

public Avalonia.Media.IBrush Fill { get; set; }

Height Property

Gets or sets the height in vertical axis units.

public double Height { get; set; }

Label Property

Gets or sets the label text.

public string Label { get; set; }

Width Property

Gets or sets the width in horizontal axis units.

public double Width { get; set; }

X Property

Gets or sets the left X axis value.

public double X { get; set; }

Y Property

Gets or sets the lower Y axis value.

public double Y { get; set; }

Fields

CornerRadiusProperty Field

Identifies the Avalonia.Controls.Charts.RectangleAnnotation.CornerRadius Avalonia property.

public Avalonia.StyledProperty<Avalonia.CornerRadius> CornerRadiusProperty

FillProperty Field

Identifies the Avalonia.Controls.Charts.RectangleAnnotation.Fill Avalonia property.

public Avalonia.StyledProperty<Avalonia.Media.IBrush> FillProperty

HeightProperty Field

Identifies the Avalonia.Controls.Charts.RectangleAnnotation.Height Avalonia property.

public Avalonia.StyledProperty<double> HeightProperty

LabelProperty Field

Identifies the Avalonia.Controls.Charts.RectangleAnnotation.Label Avalonia property.

public Avalonia.StyledProperty<string> LabelProperty

WidthProperty Field

Identifies the Avalonia.Controls.Charts.RectangleAnnotation.Width Avalonia property.

public Avalonia.StyledProperty<double> WidthProperty

XProperty Field

Identifies the Avalonia.Controls.Charts.RectangleAnnotation.X Avalonia property.

public Avalonia.StyledProperty<double> XProperty

YProperty Field

Identifies the Avalonia.Controls.Charts.RectangleAnnotation.Y Avalonia property.

public Avalonia.StyledProperty<double> YProperty

Events

NameDescription
PropertyChangedRaised when a Avalonia.AvaloniaProperty value changes on this object. Inherited from AvaloniaObject.