SunburstCenterLabel.TextFont Property
In This Article
Gets or sets the center label text’s font.
Namespace: DevExpress.XtraTreeMap
Assembly: DevExpress.XtraTreeMap.v24.2.dll
NuGet Package: DevExpress.TreeMap
#Declaration
[Browsable(false)]
[EditorBrowsable(EditorBrowsableState.Never)]
[XtraSerializableProperty(XtraSerializationVisibility.Hidden)]
public Font TextFont { get; set; }
#Property Value
Type | Description |
---|---|
Font | A Font object. |
#Example
This example customizes sunburst center label text and appearance.
Use the SunburstControl.CenterLabel property to access the following settings:
- TextPattern
- Specifies center label text. You can use {TV} to display the total value of top level items. Use specifiers to format the value.
- DXTextFont
- Allows you to configure font attributes.
- ForegroundColor / BackgroundColor
- Define 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;
See Also