Method ShowOverlayToolTipWithError
ShowOverlayToolTipWithError(object?, object, HVAlignment?, OverlayToolTipFlags, int?)
Displays an overlay tooltip with an error message based on the provided exception.
public virtual ObjectUniqueId ShowOverlayToolTipWithError(object? title, object e, HVAlignment? alignment = null, OverlayToolTipFlags options = OverlayToolTipFlags.DismissAfterInterval, int? dismissIntervalMilliseconds = null)
Parameters
titleobjectThe title of the tooltip. If null, a default error title is used.
eobjectThe exception message will be displayed in the tooltip. This parameter cannot be null.
alignmentHVAlignment?The horizontal and vertical alignment of the tooltip relative to its target. If null, a default alignment is used.
optionsOverlayToolTipFlagsFlags that control the behavior of the tooltip, such as whether it dismisses automatically after a set interval. The default value is DismissAfterInterval.
dismissIntervalMillisecondsint?The time, in milliseconds, after which the tooltip will automatically dismiss if the
optionsinclude DismissAfterInterval. If null, a default interval is used.
Returns
- ObjectUniqueId
An ObjectUniqueId that uniquely identifies the displayed tooltip.
Remarks
This method is a convenience wrapper for displaying error messages in an overlay tooltip. It uses the exception's message as the tooltip content and provides default values for optional parameters when not specified.