Skip to main content
Bar

BarManager.ToolTipAnchor Property

Gets or sets the point relative to which tooltips are displayed for BarItems within a BarManager. This property is not supported for the RibbonControl.

Namespace: DevExpress.XtraBars

Assembly: DevExpress.XtraBars.v24.2.dll

Declaration

[DefaultValue(ToolTipAnchor.Cursor)]
[DXCategory("Layout")]
public ToolTipAnchor ToolTipAnchor { get; set; }

Property Value

Type Default Description
ToolTipAnchor Cursor

A value that specifies the point relative to which tooltips are displayed for BarItems within a BarManager

Available values:

Name Description
Cursor

A tooltip is displayed relative to the mouse cursor at the position specified by the ToolTipController.ToolTipLocation property. The tooltip might overlap the BarItemLink in some circumstances.

ToolTipAnchor-Cursor

A tooltip is aligned with the left or right edge of a BarItemLink and never overlaps the BarItemLink. The cursor position is not taken into account. The ToolTipController.ToolTipLocation property is ignored.

ToolTipAnchor-BarItemLink

Remarks

Tooltips for bar items can be specified with the BarItem.Hint or BarItem.SuperTip property.

When the ToolTipAnchor property is set to Cursor (the default value), tooltips are displayed relative to the mouse cursor at the position specified by the ToolTipController.ToolTipLocation property (for instance, this property can be accessed and modified by adding a DefaultToolTipController component onto the form). In the Cursor mode, a tooltip might overlap the current BarItemLink object (for instance, when you modify the ToolTipController.ToolTipLocation property, or when a large tooltip is displayed close to a screen edge).

ToolTipAnchor-Cursor

Set the ToolTipAnchor property to BarItemLink to align tooltips by a BarItemLink‘s edge. In this mode, the ToolTipController.ToolTipLocation property is ignored. But, tooltips never overlap the current BarItemLink object, no matter how big the tooltip is.

ToolTipAnchor-BarItemLink

See Also