corelibraries-devexpress-dot-xtracharts-dot-crosshairoptions.md
Specifies whether to show a value line of a series point indicated by a crosshair cursor on a diagram.
Namespace : DevExpress.XtraCharts
Assembly : DevExpress.XtraCharts.v25.2.dll
NuGet Package : DevExpress.Charts
public bool ShowValueLine { get; set; }
Public Property ShowValueLine As Boolean
| Type | Description |
|---|---|
| Boolean |
true to display a value line indicated by a crosshair cursor on a diagram; otherwise, false.
|
You can access this nested property as listed below:
| Library | Object Type | Path to ShowValueLine |
|---|---|---|
| WinForms Controls | ChartControl |
.CrosshairOptions .ShowValueLine
| | ASP.NET MVC Extensions | ChartControlSettings |
.CrosshairOptions .ShowValueLine
| | ASP.NET Web Forms Controls | WebChartControl |
.CrosshairOptions .ShowValueLine
|
Before using the ShowValueLine property, make sure the ChartControl.CrosshairEnabled property is set to true.
The following table shows this property in action.
| ShowValueLine=True | ShowValueLine=False |
|---|---|
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.
The following code snippet (auto-collected from DevExpress Examples) contains a reference to the ShowValueLine property.
Note
The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.
chartControl1.CrosshairOptions.ShowValueLabels = True
chartControl1.CrosshairOptions.ShowValueLine = True
chartControl1.CrosshairOptions.ShowArgumentLine = True
See Also