Xamarin.Forms

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class TextAnnotation

    Show / Hide Table of Contents

    Class TextAnnotation

    Inheritance
    System.Object
    ChartAnnotation
    TextAnnotation
    Inherited Members
    ChartAnnotation.GetView()
    ChartAnnotation.MouseUp(CGPoint, NSEvent)
    ChartAnnotation.MouseDown(CGPoint, NSEvent)
    ChartAnnotation.MouseExited(CGPoint, NSEvent)
    ChartAnnotation.MouseMoved(CGPoint, NSEvent)
    ChartAnnotation.MouseEntered(CGPoint, NSEvent)
    ChartAnnotation.X1
    ChartAnnotation.Y1
    ChartAnnotation.XAxisName
    ChartAnnotation.YAxisName
    ChartAnnotation.CoordinateUnit
    ChartAnnotation.Visible
    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
    ChartAnnotation.Draw(CGContext)

    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.

    Back to top Generated by DocFX
    Copyright © 2001 - 2023 Syncfusion Inc. All Rights Reserved