Back to Devexpress

CrosshairOptions.CrosshairLabelMode Property

corelibraries-devexpress-dot-xtracharts-dot-crosshairoptions-50c8d5bc.md

latest4.2 KB
Original Source

CrosshairOptions.CrosshairLabelMode Property

Specifies the way in which the crosshair label is shown for a series on a diagram.

Namespace : DevExpress.XtraCharts

Assembly : DevExpress.XtraCharts.v25.2.dll

NuGet Package : DevExpress.Charts

Declaration

csharp
public CrosshairLabelMode CrosshairLabelMode { get; set; }
vb
Public Property CrosshairLabelMode As CrosshairLabelMode

Property Value

TypeDescription
CrosshairLabelMode

A CrosshairLabelMode enumeration member that specifies how the crosshair label is shown for a series.

|

Available values:

NameDescription
ShowForEachSeries

A crosshair label is shown for each series.

| | ShowForNearestSeries |

A crosshair label is shown for the nearest series.

| | ShowCommonForAllSeries |

A crosshair label is shown common to all series.

|

Property Paths

You can access this nested property as listed below:

LibraryObject TypePath to CrosshairLabelMode
WinForms ControlsChartControl

.CrosshairOptions .CrosshairLabelMode

| | ASP.NET MVC Extensions | ChartControlSettings |

.CrosshairOptions .CrosshairLabelMode

| | ASP.NET Web Forms Controls | WebChartControl |

.CrosshairOptions .CrosshairLabelMode

|

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the CrosshairLabelMode 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.

asp-net-web-forms-web-chart-control-create-drill-down-chart/CS/DrillDownChart/WebForm1.aspx.cs#L38

csharp
WebChartControl1.CrosshairOptions.ShowArgumentLine = false;
    WebChartControl1.CrosshairOptions.CrosshairLabelMode = CrosshairLabelMode.ShowForNearestSeries;
}

asp-net-web-forms-web-chart-control-create-drill-down-chart/VB/DrillDownChart/WebForm1.aspx.vb#L39

vb
WebChartControl1.CrosshairOptions.ShowArgumentLine = False
    WebChartControl1.CrosshairOptions.CrosshairLabelMode = CrosshairLabelMode.ShowForNearestSeries
Else

See Also

Tooltip and Crosshair Cursor

CrosshairOptions Class

CrosshairOptions Members

DevExpress.XtraCharts Namespace