Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

CrosshairAxisLabelOptions.Foreground Property

Gets or sets the brush used to paint the foreground of crosshair axis labels.

Namespace: DevExpress.Xpf.Charts

Assembly: DevExpress.Xpf.Charts.v24.2.dll

NuGet Package: DevExpress.Wpf.Charts

#Declaration

public Brush Foreground { get; set; }

#Property Value

Type Description
Brush

A Brush object used to paint the foreground of crosshair axis labels.

#Property Paths

You can access this nested property as listed below:

Object Type Path to Foreground
Axis2D
Axis3DBase

#Remarks

Use the Foreground property to paint the foreground of both the crosshair argument labels and crosshair value labels.

Before using the Foreground property, make sure the ChartControlBase.CrosshairEnabled property is set to true.

For more information, refer to Tooltip and Crosshair Cursor.

See Also