Skip to main content

CrosshairLabelPosition Class

The base class for all classes that define how a crosshair label should be positioned on a chart.

Namespace: DevExpress.XtraCharts

Assembly: DevExpress.XtraCharts.v24.1.dll

NuGet Package: DevExpress.Charts

Declaration

[TypeConverter(typeof(LocalizableExpandableObjectTypeConverter))]
public abstract class CrosshairLabelPosition :
    ChartElement,
    ICrosshairFreePosition

The following members return CrosshairLabelPosition objects:

Remarks

Use the CrosshairOptions.CommonLabelPosition property to access the CrosshairLabelPosition object.

Then, you can change the current offset for both of the common crosshair label modes (CrosshairFreePosition and CrosshairMousePosition) via the CrosshairLabelPosition.OffsetX and CrosshairLabelPosition.OffsetY properties.

To learn more on the crosshair cursor, see the Crosshair Cursor topic.

See Also