Skip to main content
A newer version of this page is available. .

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.XtraCharts

Assembly: DevExpress.XtraCharts.v21.2.dll

NuGet Package: DevExpress.Charts

Declaration

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 this nested property as listed below:

Library Object Type Path to ShowValueLabels
WinForms Controls ChartControl
.CrosshairOptions .ShowValueLabels
ASP.NET MVC Extensions ChartControlSettings
.CrosshairOptions .ShowValueLabels
ASP.NET Web Forms Controls WebChartControl
.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
ShowValueLabelsTrue ShowValueLabelsFalse

Note that the MarkerVisibility property for a particular series (e.g. LineSeriesView.MarkerVisibility) is set to false by default to support series point highlighting on a diagram (in XtraCharts for WinForms only).

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

See Also