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.
Inherited Members
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 |
---|
AppKit.NSColor |
BorderColor
Gets or sets the border color of the tooltip.
Declaration
public NSColor BorderColor { get; set; }
Property Value
Type |
---|
AppKit.NSColor |
BorderWidth
Gets or sets the width of the tooltip border line.
Declaration
public float BorderWidth { get; set; }
Property Value
Type |
---|
System.Single |
Duration
Gets or sets the duration of the tooltip text in seconds.
Declaration
public double Duration { get; set; }
Property Value
Type |
---|
System.Double |
EdgeInsets
Gets or sets the margin of the tooltip text.
Declaration
public NSEdgeInsets EdgeInsets { get; set; }
Property Value
Type |
---|
AppKit.NSEdgeInsets |
Font
Gets or sets the font for the tooltip text.
Declaration
public NSFont Font { get; set; }
Property Value
Type |
---|
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 |
---|
System.nfloat |
OffsetY
Gets or sets the vertical offset of the tooltip.
Declaration
public nfloat OffsetY { get; set; }
Property Value
Type |
---|
System.nfloat |
Position
Gets or sets the position of the tooltip.
Declaration
public SFChartElementPosition Position { get; set; }
Property Value
TextColor
Gets or sets the color for the text of the tooltip.
Declaration
public NSColor TextColor { get; set; }
Property Value
Type |
---|
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 |
---|
SfView |
MouseMoved(CGPoint, NSEvent)
Declaration
protected override void MouseMoved(CGPoint locationInChart, NSEvent theEvent)
Parameters
Type | Name | Description |
---|---|---|
CoreGraphics.CGPoint | locationInChart | |
AppKit.NSEvent | theEvent |
Overrides
Show(CGPoint)
Declaration
public virtual void Show(CGPoint point)
Parameters
Type | Name | Description |
---|---|---|
CoreGraphics.CGPoint | point |