Class RectangleAnnotation
This class is used to add a rectangle annotation in SfCartesianChart. An instance of this class need to be added to Annotations collection.
Inherited Members
Namespace: Syncfusion.Maui.Charts
Assembly: Syncfusion.Maui.Charts.dll
Syntax
public class RectangleAnnotation : ShapeAnnotation, IThemeElement
Remarks
RectangleAnnotation is used to draw a rectangle over the chart area.
Examples
<chart:SfCartesianChart.Annotations>
<chart:RectangleAnnotation X1="3" Y1="20" X2="4" Y2="20">
</chart:RectangleAnnotation>
</chart:SfCartesianChart.Annotations>
Constructors
RectangleAnnotation()
Declaration
public RectangleAnnotation()
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 |