Class TextAnnotation
Inherited Members
Namespace: Com.Syncfusion.Charts
Assembly: Syncfusion.SfChart.Android.dll
Syntax
public class TextAnnotation : ChartAnnotation
Constructors
TextAnnotation()
Declaration
public TextAnnotation()
Properties
LabelStyle
Gets the customized style for the annotation text using ChartAnnotationLabelStyle.
Declaration
public ChartAnnotationLabelStyle LabelStyle { get; }
Property Value
Type | Description |
---|---|
ChartAnnotationLabelStyle | The label style. |
Text
Gets or sets the text to be displayed on the annotation.
Declaration
public string Text { get; set; }
Property Value
Type | Description |
---|---|
System.String | The annotation text. |
Methods
Draw(Canvas)
Method used to draw annotation in chart area.
Declaration
protected override void Draw(Canvas context)
Parameters
Type | Name | Description |
---|---|---|
Android.Graphics.Canvas | context | The context. |
Overrides
DrawLabel(Canvas, String, Double, Double)
Draws the annotation label.
Declaration
protected virtual void DrawLabel(Canvas context, string label, double pointX, double pointY)
Parameters
Type | Name | Description |
---|---|---|
Android.Graphics.Canvas | context | The context. |
System.String | label | The label. |
System.Double | pointX | The x coordinate. |
System.Double | pointY | The y coordinate. |
DrawLabelBackground(Canvas, RectangleF)
Draws the annotation label background.
Declaration
protected virtual void DrawLabelBackground(Canvas context, RectangleF rect)
Parameters
Type | Name | Description |
---|---|---|
Android.Graphics.Canvas | context | The context. |
System.Drawing.RectangleF | rect | The rectangle. |