Table of Contents

Method SuggestVertAlignmentForToolTip

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

SuggestVertAlignmentForToolTip(RectD, RectD)

Suggests the vertical alignment for a tooltip based on the relative sizes and positions of a container rectangle and an item rectangle.

public static VerticalAlignment SuggestVertAlignmentForToolTip(RectD containerRect, RectD itemRect)

Parameters

containerRect RectD

The rectangle representing the container area.

itemRect RectD

The rectangle representing the item for which the tooltip is being positioned.

Returns

VerticalAlignment

A VerticalAlignment value indicating the suggested vertical alignment. Returns Top if the top area is larger; otherwise, returns Bottom.