Back to Devexpress

PointOptions.Pattern Property

wpf-devexpress-dot-xpf-dot-charts-dot-pointoptions-0f728969.md

latest4.2 KB
Original Source

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.Xpf.Charts

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

NuGet Package : DevExpress.Wpf.Charts

Declaration

csharp
public string Pattern { get; set; }
vb
Public Property Pattern As String

Property Value

TypeDescription
String

A String, which represents the pattern. The default value is Empty.

|

Remarks

The PointOptions.Pattern property is now obsolete. Use the AxisLabel.TextPattern, SeriesLabel.TextPattern, and Series.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.

The available placeholders are detailed below.

PatternDescription
{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 with the PointOptions.PointView property. Note that if both properties are set to non-default values, the Pattern property has a higher priority than the PointOptions.PointView property.

The following code snippets (auto-collected from DevExpress Examples) contain references to the Pattern property.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

wpf-data-grid-display-chart-control-in-grid-details/CS/WpfApplication19/MainWindow.xaml#L32

xml
<dxc:PieSeries2D.LegendPointOptions>
    <dxc:PointOptions Pattern="{}{A}"/>
</dxc:PieSeries2D.LegendPointOptions>

wpf-data-grid-create-master-detail-grid-in-code/CS/MasterDetailInCode/MainWindow.xaml#L29

xml
<dxc:PieSeries2D.LegendPointOptions>
    <dxc:PointOptions Pattern="{}{A}"/>
</dxc:PieSeries2D.LegendPointOptions>

See Also

PointView

PointOptions Class

PointOptions Members

DevExpress.Xpf.Charts Namespace