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.v24.1.dll
NuGet Packages: DevExpress.Utils, DevExpress.Wpf.Core
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 | A tooltip is shown in the location specified by the second parameter of the ShowHint(ToolTipControllerShowEventArgs, Point) overload. |
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.
When a flyout tooltip is shown with a beak, its location can be set to one of four positions: top center, bottom center, left center, or right center.
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.