Class TooltipInfo
This class contains information about the tooltip.
Inheritance
Implements
Namespace: Syncfusion.Maui.Toolkit.Charts
Assembly: Syncfusion.Maui.Toolkit.dll
Syntax
public class TooltipInfo : Object, INotifyPropertyChanged
Constructors
TooltipInfo(Object)
Initializes a new instance of the TooltipInfo class.
Declaration
public TooltipInfo(object source)
Parameters
Type | Name | Description |
---|---|---|
System.Object | source |
Fields
Source
Gets the associated series or chart.
Declaration
public readonly object Source
Field Value
Type |
---|
System.Object |
Properties
Background
Gets or sets the brush value to customize the tooltip background.
Declaration
public Brush Background { get; set; }
Property Value
Type | Description |
---|---|
Microsoft.Maui.Controls.Brush | It accepts the Microsoft.Maui.Controls.Brush values. |
FontAttributes
Gets or sets a value to specify the FontAttributes for the tooltip label.
Declaration
public FontAttributes FontAttributes { get; set; }
Property Value
Type | Description |
---|---|
Microsoft.Maui.Controls.FontAttributes | It accepts Microsoft.Maui.Controls.FontAttributes values. |
FontFamily
Gets or sets a value to specify the FontFamily for the tooltip label.
Declaration
public string FontFamily { get; set; }
Property Value
Type | Description |
---|---|
System.String | It accepts |
FontSize
Gets or sets a value to change the label's text size of the tooltip.
Declaration
public float FontSize { get; set; }
Property Value
Type | Description |
---|---|
System.Single | It accepts the |
Index
Gets the index for the corresponding segment.
Declaration
public int Index { get; }
Property Value
Type | Description |
---|---|
System.Int32 | It accepts |
Item
Gets the data object for the associated segment
Declaration
public object Item { get; }
Property Value
Type | Description |
---|---|
System.Object | It accepts |
Margin
Gets or sets a thickness value to adjust the tooltip margin.
Declaration
public Thickness Margin { get; set; }
Property Value
Type | Description |
---|---|
Microsoft.Maui.Thickness | It accepts the Microsoft.Maui.Thickness values and the default value is 0. |
Text
Gets or sets a value that displays on the tooltip.
Declaration
public string Text { get; set; }
Property Value
Type | Description |
---|---|
System.String | It accepts |
TextColor
Gets or sets the color value to customize the text color of the tooltip label.
Declaration
public Color TextColor { get; set; }
Property Value
Type | Description |
---|---|
Microsoft.Maui.Graphics.Color | It accepts the Microsoft.Maui.Graphics.Color values. |
X
Gets the x value for the tooltip position.
Declaration
public float X { get; }
Property Value
Type | Description |
---|---|
System.Single | It accepts |
Y
Gets the y value for the tooltip position.
Declaration
public float Y { get; }
Property Value
Type | Description |
---|---|
System.Single | It accepts |