Back to Devexpress

SunburstCenterLabel Class

windowsforms-devexpress-dot-xtratreemap-c2e825a4.md

latest3.0 KB
Original Source

SunburstCenterLabel Class

The Sunburst‘s center label.

Namespace : DevExpress.XtraTreeMap

Assembly : DevExpress.XtraTreeMap.v25.2.dll

NuGet Package : DevExpress.TreeMap

Declaration

csharp
public class SunburstCenterLabel :
    SunburstElement,
    ICenterLabelAppearanceProvider
vb
Public Class SunburstCenterLabel
    Inherits SunburstElement
    Implements ICenterLabelAppearanceProvider

The following members return SunburstCenterLabel objects:

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

Inheritance

Object HierarchicalElement SunburstElement SunburstCenterLabel

See Also

SunburstCenterLabel Members

DevExpress.XtraTreeMap Namespace