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

LegendItem.CrosshairTextVisible Property

For internal use. Gets or sets the visibility of a legend item’s crosshair text.

Namespace: DevExpress.Xpf.Charts

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

NuGet Package: DevExpress.Wpf.Charts

#Declaration

public bool CrosshairTextVisible { get; set; }

#Property Value

Type Description
Boolean

true, to display the crosshair label item’s text in the legend; otherwise, false.

#Remarks

The Crosshair Cursor displays its content in the legend when the CrosshairOptions.ContentShowMode (XYSeries2D.CrosshairContentShowMode) property is set to Legend. Use the CrosshairLabelElement.TextVisible property to specify the font style when custom drawing the Crosshair using the ChartControl.CustomDrawCrosshair event handler.

Refer to Tooltip and Crosshair Cursor for more information.

See Also