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

CrosshairOptions.ValueLineColor Property

Gets or sets the color of crosshair value lines.

Namespace: DevExpress.XtraCharts

Assembly: DevExpress.XtraCharts.v18.2.dll

Declaration

[XtraSerializableProperty]
public Color ValueLineColor { get; set; }

Property Value

Type Description
Color

A Color value that specifies the value line color.

Property Paths

You can access this nested property as listed below:

Library Object Type Path to ValueLineColor
WinForms Controls ChartControl
.CrosshairOptions.ValueLineColor
ASP.NET Controls and MVC Extensions ChartControlSettings
.CrosshairOptions.ValueLineColor
MVCxChartControl
.CrosshairOptions.ValueLineColor
WebChartControl
.CrosshairOptions.ValueLineColor

Remarks

The following images demonstrate the ValueLineColor property in action.

Note that the crosshair cursor axis lines and labels are displayed on a diagram by setting the CrosshairOptions.ShowArgumentLabels, CrosshairOptions.ShowValueLabels, CrosshairOptions.ShowArgumentLine and CrosshairOptions.ShowValueLine properties to true.

ValueLineColor=Default ValueLineColor=Color.DeepSkyBlue
ValueLineColor_Default ValueLineColor_DeepSkyBlue

Note

The crosshair value label is automatically painted to the specified value line color, if the CrosshairAxisLabelOptions.BackColor property has the default value.

For more information on customizing the crosshair cursor, refer to Tooltip and Crosshair Cursor.

See Also