Xamarin.Forms

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

    Show / Hide Table of Contents

    Class SFChartTooltipBehavior

    This class is used to customize the appearance of tooltip in SFChart. An instance of this class need to be added to Behaviors collection.

    Inheritance
    System.Object
    SFChartBehavior
    SFChartTooltipBehavior
    ChartTooltipBehaviorHelper
    Inherited Members
    SFChartBehavior.MouseUp(CGPoint, NSEvent)
    SFChartBehavior.MouseDown(CGPoint, NSEvent)
    SFChartBehavior.MouseExited(CGPoint, NSEvent)
    SFChartBehavior.MouseEntered(CGPoint, NSEvent)
    SFChartBehavior.ScrollWheel(CGPoint, NSEvent)
    SFChartBehavior.MouseDragged(CGPoint, NSEvent)
    SFChartBehavior.DrawInContext(CGContext)
    SFChartBehavior.Chart
    SFChartBehavior.AdornmentLayer
    Namespace: Syncfusion.MacOS.Charts.SfChart
    Assembly: Syncfusion.SfChart.XForms.macOS.dll
    Syntax
    public class SFChartTooltipBehavior : SFChartBehavior
    Remarks

    Tooltip is displayed when you tap on a data point. By default, it displays dependent values of data point. For example, for column series, it displays y values, and for financial series, it displays open, high, low and close values.

    Constructors

    SFChartTooltipBehavior()

    Declaration
    public SFChartTooltipBehavior()

    Properties

    BackgroundColor

    Gets or sets the background color of the tooltip.

    Declaration
    public NSColor BackgroundColor { get; set; }
    Property Value
    Type Description
    AppKit.NSColor

    BorderColor

    Gets or sets the border color of the tooltip.

    Declaration
    public NSColor BorderColor { get; set; }
    Property Value
    Type Description
    AppKit.NSColor

    BorderWidth

    Gets or sets the width of the tooltip border line.

    Declaration
    public float BorderWidth { get; set; }
    Property Value
    Type Description
    System.Single

    Duration

    Gets or sets the duration of the tooltip text in seconds.

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

    EdgeInsets

    Gets or sets the margin of the tooltip text.

    Declaration
    public NSEdgeInsets EdgeInsets { get; set; }
    Property Value
    Type Description
    AppKit.NSEdgeInsets

    Font

    Gets or sets the font for the tooltip text.

    Declaration
    public NSFont Font { get; set; }
    Property Value
    Type Description
    AppKit.NSFont

    LabelFormatter

    Gets or sets the label format for the tooltip label.

    Declaration
    public NSFormatter LabelFormatter { get; set; }
    Property Value
    Type Description
    Foundation.NSFormatter

    The label formatter.

    MaximumWidth

    Gets or sets the maximum width.

    Declaration
    public nfloat MaximumWidth { get; set; }
    Property Value
    Type Description
    System.nfloat

    The maximum width.

    OffsetX

    Gets or sets the horizontal offset of the tooltip.

    Declaration
    public nfloat OffsetX { get; set; }
    Property Value
    Type Description
    System.nfloat

    OffsetY

    Gets or sets the vertical offset of the tooltip.

    Declaration
    public nfloat OffsetY { get; set; }
    Property Value
    Type Description
    System.nfloat

    Position

    Gets or sets the position of the tooltip.

    Declaration
    public SFChartElementPosition Position { get; set; }
    Property Value
    Type Description
    SFChartElementPosition

    TextColor

    Gets or sets the color for the text of the tooltip.

    Declaration
    public NSColor TextColor { get; set; }
    Property Value
    Type Description
    AppKit.NSColor

    Methods

    DrawRect(CGRect)

    Declaration
    public virtual void DrawRect(CGRect rect)
    Parameters
    Type Name Description
    CoreGraphics.CGRect rect

    GetView(SFChartTooltip)

    Declaration
    public virtual SfView GetView(SFChartTooltip tooltipView)
    Parameters
    Type Name Description
    SFChartTooltip tooltipView
    Returns
    Type Description
    SfView

    MouseMoved(CGPoint, NSEvent)

    Declaration
    protected override void MouseMoved(CGPoint locationInChart, NSEvent theEvent)
    Parameters
    Type Name Description
    CoreGraphics.CGPoint locationInChart
    AppKit.NSEvent theEvent
    Overrides
    SFChartBehavior.MouseMoved(CGPoint, NSEvent)

    Show(CGPoint)

    Declaration
    public virtual void Show(CGPoint point)
    Parameters
    Type Name Description
    CoreGraphics.CGPoint point
    Back to top Generated by DocFX
    Copyright © 2001 - 2023 Syncfusion Inc. All Rights Reserved