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

LegendItem.CrosshairForeground Property

For internal use. Gets or sets the Crosshair’s text foreground of a legend item.

Namespace: DevExpress.Xpf.Charts

Assembly: DevExpress.Xpf.Charts.v20.1.dll

NuGet Packages: DevExpress.WindowsDesktop.Wpf.Charts, DevExpress.Wpf.Charts

Declaration

public Brush CrosshairForeground { get; set; }

Property Value

Type Description
Brush

A Brush object.

Remarks

The Crosshair Cursor displays its content in the legend when the CrosshairOptions.ContentShowMode (XYSeries2D.CrosshairContentShowMode) property is set to Legend. Use the CrosshairLabelElementBase.Foreground property to specify the Crosshair’s legend text foreground when custom drawing the Crosshair using the ChartControl.CustomDrawCrosshair event handler.

Refer to Tooltip and Crosshair Cursor for more information.

See Also