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

Indicator.CrosshairLabelPattern Property

Gets or sets the format string that specifies the text to be displayed in a Crosshair label for the current indicator.

Namespace: DevExpress.Xpf.Charts

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

NuGet Package: DevExpress.Wpf.Charts

#Declaration

public string CrosshairLabelPattern { get; set; }

#Property Value

Type Description
String

A String that defines a crosshair label pattern. The default value is Empty.

#Remarks

The format string can contain placeholders with format specifiers and plain text.

The following image shows the RateOfChange indicator whose CrosshairLabelPattern property is defined to “ROC: Argument - {A:MMM dd}, Value - {V:F3}”:

indicator-crosshair-label-pattern

The table below lists all the placeholders that you can use in the pattern:

Placeholder Description
{I} Displays an indicator name.
{A} Displays an indicator point’s argument.
{V} Displays a single-line indicator or MACD indicator point’s value.
{SV} Displays a MACD indicator signal line’s point value.
{AV} Displays the MovingAverage indicator value.
{LV} Displays the MovingAverage indicator lower envelope line point’s value.
{UV} Displays the Moving Average indicator upper envelope line point’s value.
{T} Displays the Error Bar indicator point’s top value.
{B} Displays the Error Bar indicator point’s bottom value.
See Also