Back to Devexpress

SunburstControl.CenterLabel Property

windowsforms-devexpress-dot-xtratreemap-dot-sunburstcontrol-f6298d73.md

latest2.7 KB
Original Source

SunburstControl.CenterLabel Property

Returns the center label to modify its settings.

Namespace : DevExpress.XtraTreeMap

Assembly : DevExpress.XtraTreeMap.v25.2.UI.dll

NuGet Package : DevExpress.Win.TreeMap

Declaration

csharp
[XtraSerializableProperty(XtraSerializationVisibility.Hidden)]
public SunburstCenterLabel CenterLabel { get; }
vb
<XtraSerializableProperty(XtraSerializationVisibility.Hidden)>
Public ReadOnly Property CenterLabel As SunburstCenterLabel

Property Value

TypeDescription
SunburstCenterLabel

The center label options’ storage.

|

Example

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.

csharp
sunburstControl.CenterLabel.TextPattern = "Total: ${TV : F2}";
sunburstControl.CenterLabel.DXTextFont = new DXFont("Tahoma", 10);
sunburstControl.CenterLabel.ForegroundColor = Color.Blue;
sunburstControl.CenterLabel.BackgroundColor = Color.Beige;
vb
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

SunburstControl Class

SunburstControl Members

DevExpress.XtraTreeMap Namespace