Class TooltipInfo
Implements
Inherited Members
Namespace: Syncfusion.Maui.Charts
Assembly: Syncfusion.Maui.Charts.dll
Syntax
public class TooltipInfo : INotifyPropertyChanged
Constructors
TooltipInfo(object)
Initializes a new instance of the TooltipInfo class.
Declaration
public TooltipInfo(object source)
Parameters
| Type | Name | Description |
|---|---|---|
| object | source |
Fields
Source
Gets the associated series.
Declaration
public readonly object Source
Field Value
| Type |
|---|
| object |
Properties
Background
Gets or sets the brush value to customize the tooltip background.
Declaration
public Brush? Background { get; set; }
Property Value
| Type | Description |
|---|---|
| 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 |
|---|---|
| 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 |
|---|---|
| string | It accepts string values. |
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 |
|---|---|
| float | It accepts the float values and the default value is 12. |
Index
Gets the index for the corresponding segment.
Declaration
public int Index { get; }
Property Value
| Type |
|---|
| int |
Item
Gets the data object for the associated segment
Declaration
public object? Item { get; }
Property Value
| Type |
|---|
| object |
Margin
Gets or sets a thickness value to adjust the tooltip margin.
Declaration
public Thickness Margin { get; set; }
Property Value
| Type | Description |
|---|---|
| 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 |
|---|---|
| string | It accepts string values. |
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 |
|---|---|
| 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 |
|---|
| float |
Y
Gets the y value for the tooltip position.
Declaration
public float Y { get; }
Property Value
| Type |
|---|
| float |
Events
PropertyChanged
Occurs when a property value changes.
Declaration
public event PropertyChangedEventHandler? PropertyChanged
Event Type
| Type |
|---|
| PropertyChangedEventHandler |