Skip to main content

CrosshairOptions.ShowValueLabels Property

Gets or sets a value that specifies whether to show a value label of a series point indicated by a crosshair cursor on a diagram.

Namespace: DevExpress.Xpf.Charts

Assembly: DevExpress.Xpf.Charts.v14.2.dll

#Declaration

[XtraSerializableProperty]
public bool ShowValueLabels { get; set; }

#Property Value

Type Description
Boolean

true - to display a value label indicated by a crosshair cursor on a diagram; otherwise - false;

#Property Paths

You can access the CrosshairOptions.ShowValueLabels property from the following objects:

Object Type Path to ShowValueLabels
ChartControl
.CrosshairOptions.ShowValueLabels

#Remarks

Before using the ShowValueLabels property, make sure the ChartControl.CrosshairEnabled property is set to true.

The following table shows this property in action.

ShowValueLabels=True ShowValueLabels=False
CrosshairOptions - ShowValueLabels - true CrosshairOptions - ShowValueLabels - false
See Also