Method SuggestVertAlignmentForToolTip
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
containerRectRectDThe rectangle representing the container area.
itemRectRectDThe 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.