SunburstCenterLabel.TextFont Property
Gets or sets the center label text’s font.
Namespace: DevExpress.XtraTreeMap
Assembly: DevExpress.XtraTreeMap.v24.1.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 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.
- The SunburstCenterLabel.TextPattern property allows you to specify the center label text. You can use the {TV} to display the top level items’ total value. Use specifiers to format the value.
- The
SunburstCenterLabel.TextFont
property allows you to configure font attributes. - The SunburstCenterLabel.ForegroundColor and SunburstCenterLabel.BackgroundColor properties define foreground and background colors.
sunburstControl.CenterLabel.TextPattern = "Total: ${TV : F2}";
sunburstControl.CenterLabel.TextFont = new Font("Tahoma",10);
sunburstControl.CenterLabel.ForegroundColor = Color.Black;
sunburstControl.CenterLabel.BackgroundColor = Color.White;
See Also