Xamarin.Forms

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

    Show / Hide Table of Contents

    Class SFChartBehavior

    SFChartBehavior can be added to SFChart view You can handle the SFChart view events directly in chart behavior, which will be helpful in designing the chart application.

    Inheritance
    System.Object
    SFChartBehavior
    SFChartSelectionBehavior
    SFChartTooltipBehavior
    SFChartTrackballBehavior
    SFChartZoomPanBehavior
    ChartBehaviorHelper
    Namespace: Syncfusion.MacOS.Charts.SfChart
    Assembly: Syncfusion.SfChart.XForms.macOS.dll
    Syntax
    public abstract class SFChartBehavior : NSObject

    Constructors

    SFChartBehavior()

    Declaration
    public SFChartBehavior()

    Properties

    AdornmentLayer

    Gets the adornment layer.

    Declaration
    public AdornmentLayer AdornmentLayer { get; }
    Property Value
    Type Description
    AdornmentLayer

    You can also add your drawing content to the Chart, by making use of the adornment layer. This method returned the adornment layer which can be used to place the your drawing content at desired positions.

    Chart

    Gets the chart.

    Declaration
    public SFChart Chart { get; }
    Property Value
    Type Description
    SFChart

    The SFChart view the chart behavior is attached to. (read-only) You attach(or add) a chart behavior to a SFChart object using the Behavior collection property.

    Methods

    DrawInContext(CGContext)

    Called via the -display method when the `contents' property is being updated. Default implementation for each behaviors (like Selection Zooming Rectangle).

    Declaration
    public virtual void DrawInContext(CGContext context)
    Parameters
    Type Name Description
    CoreGraphics.CGContext context

    The context.

    MouseDown(CGPoint, NSEvent)

    Informs the receiver when the left mouse button is clicked in SfChart 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.

    MouseDragged(CGPoint, NSEvent)

    Tells the receiver when the left button is down and dragged into a SFChart view.

    Declaration
    protected virtual void MouseDragged(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 scroll belong.

    MouseEntered(CGPoint, NSEvent)

    Informs the receiver when the mouse enters into SfChart 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 SfChart 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 SfChart 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 SfChart 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.

    ScrollWheel(CGPoint, NSEvent)

    Informs the receiver when the mouse wheel is scrolled in SfChart view.

    Declaration
    protected virtual void ScrollWheel(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 scroll belong.

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