Back to Devexpress

CrosshairOptions.ShowArgumentLabels Property

corelibraries-devexpress-dot-xtracharts-dot-crosshairoptions-ab0027d4.md

latest4.0 KB
Original Source

CrosshairOptions.ShowArgumentLabels Property

Gets or sets a value that specifies whether to show an argument label 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

Declaration

csharp
public bool ShowArgumentLabels { get; set; }
vb
Public Property ShowArgumentLabels As Boolean

Property Value

TypeDescription
Boolean

true to display an argument label indicated by a crosshair cursor on a diagram; otherwise, false.

|

Property Paths

You can access this nested property as listed below:

LibraryObject TypePath to ShowArgumentLabels
WinForms ControlsChartControl

.CrosshairOptions .ShowArgumentLabels

| | ASP.NET MVC Extensions | ChartControlSettings |

.CrosshairOptions .ShowArgumentLabels

| | ASP.NET Web Forms Controls | WebChartControl |

.CrosshairOptions .ShowArgumentLabels

|

Remarks

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

The following table shows this property in action.

ShowArgumentLabels=TrueShowArgumentLabels=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 ShowArgumentLabels 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.

winforms-chart-format-values-in-a-crosshair-cursor-with-a-labels-patterns/VB/FormatCrosshairLabels/Form1.vb#L41

vb
'Show crosshair axis lines and crosshair axis labels to see format values of crosshair labels
chartControl1.CrosshairOptions.ShowArgumentLabels = True
chartControl1.CrosshairOptions.ShowValueLabels = True

See Also

CrosshairOptions Class

CrosshairOptions Members

DevExpress.XtraCharts Namespace