menu

MAUI Toolkit

  • User Guide
  • Demos
  • Support
Class TooltipInfo - MAUI-ToolKit API Reference | Syncfusion

    Show / Hide Table of Contents

    Class TooltipInfo

    This class contains information about the tooltip.

    Inheritance
    System.Object
    TooltipInfo
    Implements
    System.ComponentModel.INotifyPropertyChanged
    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 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 14.

    Index

    Gets the index for the corresponding segment.

    Declaration
    public int Index { get; }
    Property Value
    Type Description
    System.Int32

    It accepts int values.

    Item

    Gets the data object for the associated segment

    Declaration
    public object Item { get; }
    Property Value
    Type Description
    System.Object

    It accepts object values.

    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 Description
    System.Single

    It accepts float values.

    Y

    Gets the y value for the tooltip position.

    Declaration
    public float Y { get; }
    Property Value
    Type Description
    System.Single

    It accepts float values.

    Implements

    System.ComponentModel.INotifyPropertyChanged
    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved