Class TooltipInfo
Inheritance
Implements
Namespace: Syncfusion.Maui.Charts
Assembly: Syncfusion.Maui.Charts.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.
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 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 |
---|---|
System.Single | 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 |
---|
System.Int32 |
Item
Gets the data object for the associated segment
Declaration
public object Item { get; }
Property Value
Type |
---|
System.Object |
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 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 |
---|---|
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 |
---|
System.Single |
Y
Gets the y value for the tooltip position.
Declaration
public float Y { get; }
Property Value
Type |
---|
System.Single |
Events
PropertyChanged
Occurs when a property value changes.
Declaration
public event PropertyChangedEventHandler PropertyChanged
Event Type
Type |
---|
System.ComponentModel.PropertyChangedEventHandler |