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
SFChartTooltipBehavior
Assembly: Syncfusion.SfChart.XForms.macOS.dll
public class SFChartTooltipBehavior : SFChartBehavior
Constructors
Declaration
public SFChartTooltipBehavior()
Properties
Gets or sets the background color of the tooltip.
Declaration
public NSColor BackgroundColor { get; set; }
Property Value
Gets or sets the border color of the tooltip.
Declaration
public NSColor BorderColor { get; set; }
Property Value
Gets or sets the width of the tooltip border line.
Declaration
public float BorderWidth { get; set; }
Property Value
Gets or sets the duration of the tooltip text in seconds.
Declaration
public double Duration { get; set; }
Property Value
Gets or sets the margin of the tooltip text.
Declaration
public NSEdgeInsets EdgeInsets { get; set; }
Property Value
Gets or sets the font for the tooltip text.
Declaration
public NSFont Font { get; set; }
Property Value
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.
|
Gets or sets the maximum width.
Declaration
public nfloat MaximumWidth { get; set; }
Property Value
Type |
Description |
System.nfloat |
The maximum width.
|
Gets or sets the horizontal offset of the tooltip.
Declaration
public nfloat OffsetX { get; set; }
Property Value
Gets or sets the vertical offset of the tooltip.
Declaration
public nfloat OffsetY { get; set; }
Property Value
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
Methods
Declaration
public virtual void DrawRect(CGRect rect)
Parameters
Type |
Name |
Description |
CoreGraphics.CGRect |
rect |
|
Declaration
public virtual SfView GetView(SFChartTooltip tooltipView)
Parameters
Returns
Declaration
protected override void MouseMoved(CGPoint locationInChart, NSEvent theEvent)
Parameters
Type |
Name |
Description |
CoreGraphics.CGPoint |
locationInChart |
|
AppKit.NSEvent |
theEvent |
|
Overrides
Declaration
public virtual void Show(CGPoint point)
Parameters
Type |
Name |
Description |
CoreGraphics.CGPoint |
point |
|