Table of Contents

Method ShowOverlayToolTipForItem

Namespace
Alternet.UI
Assembly
Alternet.UI.Common.dll

ShowOverlayToolTipForItem(int?, HorizontalAlignment)

Displays an overlay tooltip for the specified item if the item is eligible for tooltip display.

protected virtual bool ShowOverlayToolTipForItem(int? itemIndex, HorizontalAlignment horzAlignment = HorizontalAlignment.Left)

Parameters

itemIndex int?

The zero-based index of the item for which to show the overlay tooltip, or null to indicate no item.

horzAlignment HorizontalAlignment

The horizontal alignment for the tooltip relative to the container.

Returns

bool

true if the overlay tooltip was shown for the specified item; otherwise, false.

Remarks

The method does not display a tooltip if the item index is null, the item text is empty, the item rectangle cannot be determined, or the item is fully visible without horizontal scrolling. Override this method to customize tooltip display behavior for items.