Xamarin.Forms

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

    Show / Hide Table of Contents

    Class ChartAnnotation

    Inheritance
    System.Object
    ChartAnnotation
    ShapeAnnotation
    TextAnnotation
    ViewAnnotation
    Namespace: Syncfusion.MacOS.Charts.SfChart
    Assembly: Syncfusion.SfChart.XForms.macOS.dll
    Syntax
    public abstract class ChartAnnotation : Object

    Constructors

    ChartAnnotation()

    Declaration
    protected ChartAnnotation()

    Properties

    CoordinateUnit

    Gets or sets the ChartCoordinateUnit enum that represents whether annotation is draw on pixel co-ordinates or axis co-ordinates.

    Declaration
    public ChartCoordinateUnit CoordinateUnit { get; set; }
    Property Value
    Type Description
    ChartCoordinateUnit

    The co-ordinate point for Annotation.

    Visible

    Gets or sets a value indicating whether the annotation is visible in the chart.

    Declaration
    public bool Visible { get; set; }
    Property Value
    Type Description
    System.Boolean

    X1

    Gets or sets the date time or double that represents x1 position of annotation.

    Declaration
    public object X1 { get; set; }
    Property Value
    Type Description
    System.Object

    The x1.

    XAxisName

    Gets or sets the string value that represents name of the x axis.

    Declaration
    public string XAxisName { get; set; }
    Property Value
    Type Description
    System.String

    The name of the X Axis.

    Y1

    Gets or sets the double that represents y1 position of annotation.

    Declaration
    public double Y1 { get; set; }
    Property Value
    Type Description
    System.Double

    The y1.

    YAxisName

    Gets or sets the string value that represents name of the y axis.

    Declaration
    public string YAxisName { get; set; }
    Property Value
    Type Description
    System.String

    The name of the Y Axis.

    Methods

    Draw(CGContext)

    Method used to draw annotation in chart area.

    Declaration
    protected virtual void Draw(CGContext context)
    Parameters
    Type Name Description
    CoreGraphics.CGContext context

    The context.

    GetView()

    Gets the view for annotation.

    Declaration
    protected virtual ChartAnnotationView GetView()
    Returns
    Type Description
    ChartAnnotationView

    The view.

    Remarks

    This is not applicable for ViewAnnotation Class

    MouseDown(CGPoint, NSEvent)

    Informs the receiver when the left mouse button is clicked in annotation view.

    Declaration
    protected virtual void MouseDown(CGPoint locationInChart, NSEvent theEvent)
    Parameters
    Type Name Description
    CoreGraphics.CGPoint locationInChart

    Representing mouse location in SFChart view.

    AppKit.NSEvent theEvent

    An object representing the event to which the mouse down belong.

    MouseEntered(CGPoint, NSEvent)

    Informs the receiver when the mouse enters into annotation view.

    Declaration
    protected virtual void MouseEntered(CGPoint locationInChart, NSEvent theEvent)
    Parameters
    Type Name Description
    CoreGraphics.CGPoint locationInChart

    Representing mouse location in SFChart view.

    AppKit.NSEvent theEvent

    An object representing the event to which the mouse entered belong.

    MouseExited(CGPoint, NSEvent)

    Informs the receiver when the mouse exits from annotation view.

    Declaration
    protected virtual void MouseExited(CGPoint locationInChart, NSEvent theEvent)
    Parameters
    Type Name Description
    CoreGraphics.CGPoint locationInChart

    Representing mouse location in SFChart view.

    AppKit.NSEvent theEvent

    An object representing the event to which the mouse exit belong.

    MouseMoved(CGPoint, NSEvent)

    Informs the receiver when the mouse hovers over annotation view.

    Declaration
    protected virtual void MouseMoved(CGPoint locationInChart, NSEvent theEvent)
    Parameters
    Type Name Description
    CoreGraphics.CGPoint locationInChart

    Representing mouse location in SFChart view.

    AppKit.NSEvent theEvent

    An object representing the event to which the mouse move belong

    MouseUp(CGPoint, NSEvent)

    Informs the receiver when the left mouse button is released in annotation view.

    Declaration
    protected virtual void MouseUp(CGPoint locationInChart, NSEvent theEvent)
    Parameters
    Type Name Description
    CoreGraphics.CGPoint locationInChart

    Representing mouse location in SFChart view.

    AppKit.NSEvent theEvent

    An object representing the event to which the mouse up belong.

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