ToolTipControllerShowEventArgs.ToolTipLocation Property
Gets or sets the location of the tooltip window relative to the position where the tooltip should appear.
Namespace: DevExpress.Utils
Assembly: DevExpress.Utils.v19.1.dll
Declaration
Property Value
Type | Description |
---|---|
ToolTipLocation | A ToolTipLocation value specifying the relative position of the tooltip window. |
Available values:
Name | Description |
---|---|
BottomLeft | A tooltip appears vertically aligned at the bottom, and horizontally aligned on the left relative to the mouse cursor position. |
BottomCenter | A tooltip appears vertically aligned at the bottom, and horizontally centered relative to the mouse cursor position. |
BottomRight | A tooltip appears vertically aligned at the bottom, and horizontally aligned on the right relative to the mouse cursor position. |
TopLeft | A tooltip appears vertically aligned at the top, and horizontally aligned on the left relative to the mouse cursor position. |
TopCenter | A tooltip appears vertically aligned at the top, and horizontally centered relative to the mouse cursor position. |
TopRight | A tooltip appears vertically aligned at the top, and horizontally aligned on the right relative to the mouse cursor position. |
LeftTop | A tooltip appears horizontally aligned on the left, and vertically aligned at the top relative to the mouse cursor position. |
LeftCenter | A tooltip appears horizontally aligned on the left, and vertically centered relative to the mouse cursor position. |
LeftBottom | A tooltip appears horizontally aligned on the left, and vertically aligned at the bottom relative to the mouse cursor position. |
RightTop | A tooltip appears horizontally aligned on the right, and vertically aligned at the top relative to the mouse cursor position. |
RightCenter | A tooltip appears horizontally aligned on the right, and vertically centered relative to the mouse cursor position. |
RightBottom | A tooltip appears horizontally aligned on the right, and vertically aligned at the bottom relative to the mouse cursor position. |
Default | The default tooltip location. |
Fixed | For internal use. |
Remarks
See the ToolTipLocation topic for information on possible tooltip window positions.
When a tooltip is displayed for a RibbonControl’s bar item, its location is determined automatically. The ToolTipLocation setting is ignored in this instance.
To customize the relative position of the tooltip, you can handle the ToolTipController.CalcSize event.
To specify the amount of space between the tooltip and the associated visual element, use the ToolTipControllerShowEventArgs.ToolTipIndent property.
Related GitHub Examples
The following code snippet (auto-collected from DevExpress Examples) contains a reference to the ToolTipLocation property.
Note
The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.