Back to Devexpress

SunburstCenterLabel.TextFont Property

windowsforms-devexpress-dot-xtratreemap-dot-sunburstcenterlabel-105e9f4a.md

latest2.9 KB
Original Source

SunburstCenterLabel.TextFont Property

Gets or sets the center label text’s font.

Namespace : DevExpress.XtraTreeMap

Assembly : DevExpress.XtraTreeMap.v25.2.dll

NuGet Package : DevExpress.TreeMap

Declaration

csharp
[Browsable(false)]
[EditorBrowsable(EditorBrowsableState.Never)]
[XtraSerializableProperty(XtraSerializationVisibility.Hidden)]
public Font TextFont { get; set; }
vb
<Browsable(False)>
<EditorBrowsable(EditorBrowsableState.Never)>
<XtraSerializableProperty(XtraSerializationVisibility.Hidden)>
Public Property TextFont As Font

Property Value

TypeDescription
Font

A Font object.

|

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

SunburstCenterLabel Class

SunburstCenterLabel Members

DevExpress.XtraTreeMap Namespace