Back to Devexpress

HeatmapLabel.TextPattern Property

wpf-devexpress-dot-xpf-dot-charts-dot-heatmap-dot-heatmaplabel.md

latest2.2 KB
Original Source

HeatmapLabel.TextPattern Property

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

Namespace : DevExpress.Xpf.Charts.Heatmap

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

NuGet Package : DevExpress.Wpf.Charts

Declaration

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

Property Value

TypeDescription
String

A format string.

|

Remarks

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

PlaceholderDescription
{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:

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

See Also

HeatmapLabel Class

HeatmapLabel Members

DevExpress.Xpf.Charts.Heatmap Namespace