Skip to main content
All docs
V23.2

HeatmapLabel.TextPattern Property

Gets or sets a string pattern that formats heatmap label text.

Namespace: DevExpress.Xpf.Charts.Heatmap

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

NuGet Package: DevExpress.Wpf.Charts

Declaration

public string TextPattern { get; set; }

Property Value

Type Description
String

A format string.

Remarks

Patterns can comprise plain text and placeholders with format specifiers. The following table lists available placeholders:

Placeholder Description
{X} Displays a heatmap cell x-argument.
{Y} Displays a heatmap cell y-argument.
{V} Displays a heatmap cell value.

In XAML, insert empty brackets into the beginning of a pattern if it starts with a placeholder. Refer to the following page for more information: {} Escape sequence / markup extension.

Example

The following example shows how to display cell labels, format the label text, and configure label appearance:

Cell labels

<dxh:HeatmapControl.Label>
    <dxh:HeatmapLabel Foreground="Black" 
                      Background="#70ffffff" 
                      Padding="2" 
                      TextOrientation="Horizontal"
                      TextPattern="${V}M"/>
</dxh:HeatmapControl.Label>
See Also