Method ShowOverlayToolTip
ShowOverlayToolTip(object?, object?, MessageBoxIcon?, HVAlignment?, OverlayToolTipFlags, int?)
Displays an overlay tooltip with the specified title, message, and options.
public virtual ObjectUniqueId ShowOverlayToolTip(object? title, object? message, MessageBoxIcon? icon = null, HVAlignment? alignment = null, OverlayToolTipFlags options = OverlayToolTipFlags.DismissAfterInterval, int? dismissIntervalMilliseconds = null)
Parameters
titleobjectThe title of the tooltip. If null, an empty string is used.
messageobjectThe message content of the tooltip. If null, an empty string is used.
iconMessageBoxIcon?An optional icon to display in the tooltip. If null, no icon is shown.
alignmentHVAlignment?An optional alignment specification for the tooltip. If null, the tooltip is centered horizontally and vertically.
optionsOverlayToolTipFlagsA set of flags that control the behavior of the tooltip. The default is DismissAfterInterval.
dismissIntervalMillisecondsint?An optional duration, in milliseconds, after which the tooltip is automatically dismissed. If null, the default interval is used.
Returns
- ObjectUniqueId
An ObjectUniqueId that uniquely identifies the displayed tooltip. This can be used to manage or dismiss the tooltip programmatically.
Remarks
This method provides a convenient way to display an overlay tooltip with customizable content, appearance, and behavior. If more advanced customization is required, consider using the overload that accepts an OverlayToolTipParams object.
ShowOverlayToolTip(OverlayToolTipParams)
Displays an overlay tooltip at the specified location with the provided content and removal interval.
public virtual ObjectUniqueId ShowOverlayToolTip(OverlayToolTipParams data)
Parameters
dataOverlayToolTipParamsThe content, styling and behavior parameters for the tooltip.
Returns
- ObjectUniqueId
A unique identifier for the created overlay tooltip, which can be used to manage or remove it later.