Class EllipseAnnotation
This class is used to add an ellipse annotation in the SfCartesianChart. An instance of this class needs to be added to the Annotations collection.
Inherited Members
Namespace: Syncfusion.Maui.Charts
Assembly: Syncfusion.Maui.Charts.dll
Syntax
public class EllipseAnnotation : ShapeAnnotation, IThemeElement
Remarks
EllipseAnnotation is used to draw a circle or an ellipse over the chart area.
Examples
<chart:SfCartesianChart.Annotations>
<chart:EllipseAnnotation X1="3" Y1="10" X2="4" Y2="15" Text="Ellipse">
</chart:EllipseAnnotation>
</chart:SfCartesianChart.Annotations>
Constructors
EllipseAnnotation()
Declaration
public EllipseAnnotation()
Fields
HeightProperty
Identifies the Height bindable property.
Declaration
public static readonly BindableProperty HeightProperty
Field Value
Type | Description |
---|---|
Microsoft.Maui.Controls.BindableProperty | The identifier for Height bindable property. |
HorizontalAlignmentProperty
Identifies the HorizontalAlignment bindable property.
Declaration
public static readonly BindableProperty HorizontalAlignmentProperty
Field Value
Type | Description |
---|---|
Microsoft.Maui.Controls.BindableProperty | The identifier for HorizontalAlignment bindable property. |
VerticalAlignmentProperty
Identifies the VerticalAlignment bindable property.
Declaration
public static readonly BindableProperty VerticalAlignmentProperty
Field Value
Type | Description |
---|---|
Microsoft.Maui.Controls.BindableProperty | The identifier for VerticalAlignment bindable property. |
WidthProperty
Identifies the Width bindable property.
Declaration
public static readonly BindableProperty WidthProperty
Field Value
Type | Description |
---|---|
Microsoft.Maui.Controls.BindableProperty | The identifier for Width bindable property. |
Properties
Height
Gets or sets the height value for the ellipse annotation.
Declaration
public double Height { get; set; }
Property Value
Type | Description |
---|---|
System.Double | This property takes the |
Examples
<chart:SfCartesianChart>
<!-- ... Eliminated for simplicity-->
<chart:SfCartesianChart.Annotations>
<chart:EllipseAnnotation X1="3" Y1="10" Width="20" Height="20"/>
</chart:SfCartesianChart.Annotations>
</chart:SfCartesianChart>
HorizontalAlignment
Gets or sets the horizontal alignment of the ellipse annotation.
Declaration
public ChartAlignment HorizontalAlignment { get; set; }
Property Value
Type | Description |
---|---|
ChartAlignment | This property takes the ChartAlignment as its value and its default value is Center. |
Examples
<chart:SfCartesianChart>
<!-- ... Eliminated for simplicity-->
<chart:SfCartesianChart.Annotations>
<chart:EllipseAnnotation X1="3" Y1="10" Width="20" Height="20" HorizontalAlignment="Start"/>
</chart:SfCartesianChart.Annotations>
</chart:SfCartesianChart>
VerticalAlignment
Gets or sets the vertical alignment of the ellipse annotation.
Declaration
public ChartAlignment VerticalAlignment { get; set; }
Property Value
Type | Description |
---|---|
ChartAlignment | This property takes the ChartAlignment as its value. Its default value is Center. |
Examples
<chart:SfCartesianChart>
<!-- ... Eliminated for simplicity-->
<chart:SfCartesianChart.Annotations>
<chart:EllipseAnnotation X1="3" Y1="10" Width="20" Height="20" VerticalAlignment="Start"/>
</chart:SfCartesianChart.Annotations>
</chart:SfCartesianChart>
Width
Gets or sets the width value for the ellipse annotation.
Declaration
public double Width { get; set; }
Property Value
Type | Description |
---|---|
System.Double | This property takes the |
Examples
<chart:SfCartesianChart>
<!-- ... Eliminated for simplicity-->
<chart:SfCartesianChart.Annotations>
<chart:EllipseAnnotation X1="3" Y1="10" Height="20" Width="20"/>
</chart:SfCartesianChart.Annotations>
</chart:SfCartesianChart>
Methods
Draw(ICanvas, RectF)
Declaration
protected override void Draw(ICanvas canvas, RectF dirtyRect)
Parameters
Type | Name | Description |
---|---|---|
Microsoft.Maui.Graphics.ICanvas | canvas | |
Microsoft.Maui.Graphics.RectF | dirtyRect |