Class TextAnnotation
Inherited Members
Namespace: Syncfusion.MacOS.Charts.SfChart
Assembly: Syncfusion.SfChart.XForms.macOS.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(CGContext)
Method used to draw annotation in chart area.
Declaration
protected override void Draw(CGContext context)
Parameters
Type | Name | Description |
---|---|---|
CoreGraphics.CGContext | context | The context. |
Overrides
DrawLabel(CGContext, String, Double, Double)
Draws the annotation label.
Declaration
protected virtual void DrawLabel(CGContext context, string label, double pointX, double pointY)
Parameters
Type | Name | Description |
---|---|---|
CoreGraphics.CGContext | context | The context. |
System.String | label | The label. |
System.Double | pointX | The x coordinate. |
System.Double | pointY | The y coordinate. |
DrawLabelBackground(CGContext, RectangleF)
Draws the annotation label background.
Declaration
protected virtual void DrawLabelBackground(CGContext context, RectangleF rect)
Parameters
Type | Name | Description |
---|---|---|
CoreGraphics.CGContext | context | The context. |
System.Drawing.RectangleF | rect | The rectangle. |