windowsforms-devexpress-dot-xtratreemap-dot-sunburstcenterlabel-c10c3536.md
Gets or sets the center label’s foreground color.
Namespace : DevExpress.XtraTreeMap
Assembly : DevExpress.XtraTreeMap.v25.2.dll
NuGet Package : DevExpress.TreeMap
[XtraSerializableProperty]
public Color ForegroundColor { get; set; }
<XtraSerializableProperty>
Public Property ForegroundColor As Color
| Type | Description |
|---|---|
| Color |
A Color value that specifies the foreground color.
|
This example customizes sunburst center label text and appearance.
Use the SunburstControl.CenterLabel property to access the following settings:
TextPatternSpecifies center label text. You can use {TV} to display the total value of top level items. Use specifiers to format the value.DXTextFontAllows you to configure font attributes.ForegroundColor / BackgroundColorDefine foreground and background colors.
sunburstControl.CenterLabel.TextPattern = "Total: ${TV : F2}";
sunburstControl.CenterLabel.DXTextFont = new DXFont("Tahoma", 10);
sunburstControl.CenterLabel.ForegroundColor = Color.Blue;
sunburstControl.CenterLabel.BackgroundColor = Color.Beige;
sunburstControl.CenterLabel.TextPattern = "Total: ${TV : F2}"
sunburstControl.CenterLabel.DXTextFont = New DXFont("Tahoma", 10)
sunburstControl.CenterLabel.ForegroundColor = Color.Blue
sunburstControl.CenterLabel.BackgroundColor = Color.Beige
See Also