Constructor ToolTipProvider
ToolTipProvider(Func<View>)
Initializes a new instance of the ToolTipProvider class using the specified factory function to generate tooltip content.
public ToolTipProvider(Func<View> contentFactory)
Parameters
contentFactoryFunc<View>A function that returns a View representing the content to display in the tooltip. This function is invoked each time a tooltip is shown.
Exceptions
- ArgumentNullException
Thrown if the contentFactory parameter is null.
ToolTipProvider(string)
Initializes a new instance of the ToolTipProvider class with the specified tooltip text.
public ToolTipProvider(string text)
Parameters
textstringThe text to display in the tooltip. This value is used as the content of the tooltip label.
ToolTipProvider(Func<string>)
Initializes a new instance of the ToolTipProvider class using a delegate that supplies the tooltip text.
public ToolTipProvider(Func<string> textFactory)
Parameters
textFactoryFunc<string>A delegate that returns the text to display in the tooltip. The delegate is invoked each time the tooltip is shown.
Remarks
Use this constructor when you want the tooltip text to be generated dynamically at runtime. The provided delegate allows the tooltip content to reflect the current state or context when displayed.