wpf-devexpress-dot-xpf-dot-charts-dot-heatmap-dot-heatmaplabel.md
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
public string TextPattern { get; set; }
Public Property TextPattern As String
| Type | Description |
|---|---|
| String |
A format string.
|
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.
The following example shows how to display cell labels, format the label text, and configure label appearance:
<dxh:HeatmapControl.Label>
<dxh:HeatmapLabel Foreground="Black"
Background="#70ffffff"
Padding="2"
TextOrientation="Horizontal"
TextPattern="${V}M"/>
</dxh:HeatmapControl.Label>
See Also