Table of Contents

Class ToolTipProvider

Namespace
Terminal.Gui.App
Assembly
Terminal.Gui.dll

Provides a mechanism for supplying tooltip content for ToolTipHost.

public sealed class ToolTipProvider
Inheritance
ToolTipProvider
Inherited Members

Remarks

ToolTipProvider enables flexible creation of tooltips by allowing content to be specified as a static string, a dynamic string factory, a custom view, or a view factory delegate. This allows tooltips to be customized or generated dynamically based on application state. The tooltip content is created on demand when needed by the UI.

Constructors

ToolTipProvider(Func<string>)

Initializes a new instance of the ToolTipProvider class using a delegate that supplies the tooltip text.

ToolTipProvider(Func<View>)

Initializes a new instance of the ToolTipProvider class using the specified factory function to generate tooltip content.

ToolTipProvider(string)

Initializes a new instance of the ToolTipProvider class with the specified tooltip text.

Methods

GetContent()

Creates tooltip content.