Skip to main content

PointOptions.Pattern Property

Gets or sets a string which represents the pattern specifying the text to be displayed within series labels and legend items.

Namespace: DevExpress.XtraCharts

Assembly: DevExpress.XtraCharts.v23.2.dll

NuGet Package: DevExpress.Charts

Declaration

public string Pattern { get; set; }

Property Value

Type Description
String

A String, which represents the pattern.

Remarks

The PointOptions.Pattern property is now obsolete. Use the AxisLabel.TextPattern, SeriesLabelBase.TextPattern, and SeriesBase.LegendTextPattern properties instead.

Use the Pattern property to define a pattern for displaying text by series labels or the legend. Various placeholders enclosed in braces correspond to the available display patterns. For example, a pair of placeholders specified together (e.g. {A} - {V}), will cause each data point to be represented by both its argument and value, separated by a hyphen.

PointOptions_Pattern

The available placeholders are detailed below.

Pattern Description
{A} Use it to display a series point arguments.
{V} Use it to display a series point values.
{S} Use it to display the name of the series.

In addition to the Pattern property, you can specify the text to be displayed in a simpler way via the PointOptions.PointView property. This property allows you to choose one of the PointView enumeration values, and automatically change the Pattern property value to the corresponding pattern. Conversely, changing the Pattern property value automatically sets the corresponding value to the PointOptions.PointView property.

For more information, refer to Series Point Labels.

Note

In addition to the options mentioned above, you can use the ChartControl.CustomDrawSeries (WebChartControl.CustomDrawSeries) and ChartControl.CustomDrawSeriesPoint (WebChartControl.CustomDrawSeriesPoint) events, to fully customize the text displayed in series point labels or legend items, via the CustomDrawSeriesPointEventArgs.LabelText, CustomDrawSeriesPointEventArgs.SecondLabelText and CustomDrawSeriesEventArgsBase.LegendText properties.

See Also