Xamarin.iOS

Upgrade Guide User Guide Demos Support Forums Download
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class SFChartTooltipBehavior - Xamarin.iOS API Reference | Syncfusion

    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
    Inherited Members
    SFChartBehavior.TouchesBegan(NSSet, UIEvent)
    SFChartBehavior.TouchesMoved(NSSet, UIEvent)
    SFChartBehavior.TouchesEnded(NSSet, UIEvent)
    SFChartBehavior.TouchesCancelled(NSSet, UIEvent)
    SFChartBehavior.DrawInContext(CGContext)
    SFChartBehavior.Chart
    SFChartBehavior.AdornmentLayer
    Namespace: Syncfusion.SfChart.iOS
    Assembly: Syncfusion.SFChart.iOS.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

    Animation

    Gets or sets the animation for the tooltip when it is shown or hidden.

    Declaration
    public SFChartTooltipAnimation Animation { get; set; }
    Property Value
    Type Description
    SFChartTooltipAnimation

    BackgroundColor

    Gets or sets the background color of the tooltip.

    Declaration
    public UIColor BackgroundColor { get; set; }
    Property Value
    Type Description
    UIKit.UIColor

    BorderColor

    Gets or sets the border color of the tooltip.

    Declaration
    public UIColor BorderColor { get; set; }
    Property Value
    Type Description
    UIKit.UIColor

    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 UIEdgeInsets EdgeInsets { get; set; }
    Property Value
    Type Description
    UIKit.UIEdgeInsets

    Font

    Gets or sets the font for the tooltip text.

    Declaration
    public UIFont Font { get; set; }
    Property Value
    Type Description
    UIKit.UIFont

    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 UIColor TextColor { get; set; }
    Property Value
    Type Description
    UIKit.UIColor

    Methods

    DrawRect(CGRect)

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

    GetView(SFChartTooltip)

    Declaration
    public virtual UIView GetView(SFChartTooltip tooltipView)
    Parameters
    Type Name Description
    SFChartTooltip tooltipView
    Returns
    Type Description
    UIKit.UIView

    Hide(Boolean)

    Declaration
    public virtual void Hide(bool animated)
    Parameters
    Type Name Description
    System.Boolean animated

    Show(CGPoint, Boolean)

    Declaration
    public virtual void Show(CGPoint point, bool animated)
    Parameters
    Type Name Description
    CoreGraphics.CGPoint point
    System.Boolean animated

    Show(CGPoint, UIView, Boolean)

    Declaration
    public virtual void Show(CGPoint point, UIView view, bool animated)
    Parameters
    Type Name Description
    CoreGraphics.CGPoint point
    UIKit.UIView view
    System.Boolean animated

    TapWithGestureRecognizer(UITapGestureRecognizer)

    Declaration
    public virtual void TapWithGestureRecognizer(UITapGestureRecognizer tapGestureRecognizer)
    Parameters
    Type Name Description
    UIKit.UITapGestureRecognizer tapGestureRecognizer
    Back to top Generated by DocFX
    Copyright © 2001 - 2021 Syncfusion Inc. All Rights Reserved