Skip to main content

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.1.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