Skip to main content
A newer version of this page is available. .

SunburstCenterLabel.TextPattern Property

Gets or sets the pattern that formats the sunburst’s center label text.

Namespace: DevExpress.XtraTreeMap

Assembly: DevExpress.XtraTreeMap.v19.1.dll

Declaration

public string TextPattern { get; set; }

Property Value

Type Description
String

The format string that configures the sunburst’s center label text.

Remarks

The text pattern can contain plain text, special placeholders and format specifiers.

The following table lists the placeholders you can use in patterns:

Placeholder Description
{TV} Shows the sunburst top level items’ total value.

Example

This example shows how to specify a sunburst’s center label text and appearance.

Use the SunburstControl.CenterLabel property to access to a sunburst’s center label settings.

sunburstControl.CenterLabel.TextPattern = "Total: ${TV : F2}";
sunburstControl.CenterLabel.TextFont = new Font("Tahoma",10);
sunburstControl.CenterLabel.ForegroundColor = Color.Black;
sunburstControl.CenterLabel.BackgroundColor = Color.White;

The following code snippets (auto-collected from DevExpress Examples) contain references to the TextPattern 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.

See Also