windowsforms-devexpress-dot-xtratreemap-dot-sunburstcontrol-5adc3a92.md
Returns the sunburst item label settings.
Namespace : DevExpress.XtraTreeMap
Assembly : DevExpress.XtraTreeMap.v25.2.UI.dll
NuGet Package : DevExpress.Win.TreeMap
[XtraSerializableProperty(XtraSerializationVisibility.Hidden)]
public SunburstLabel Label { get; }
<XtraSerializableProperty(XtraSerializationVisibility.Hidden)>
Public ReadOnly Property Label As SunburstLabel
| Type | Description |
|---|---|
| SunburstLabel |
The settings of sunburst item labels.
|
The Label property provides access to the SunburstLabel object that stores the item label representation options.
To provide item labels with content, use the appropriate data adapter’s properties:
This example demonstrates how to format content and fine-tune the appearance of sunburst item labels.
Use the following API members to customize label text format, appearance and arrangement.
sunburstControl.Label.TextPattern = "{L}: ${V:F2}M";
sunburstControl.Label.DisplayMode = SunburstLabelDisplayMode.Horizontal;
sunburstControl.Label.AutoLayout = true;
sunburstControl.Label.Visible = true;
sunburstControl.ItemStyle.TextColor = Color.DarkSlateBlue;
sunburstControl.ItemStyle.TextGlowColor = Color.White;
sunburstControl.Label.TextPattern = "{L}: ${V:F2}M"
sunburstControl.Label.DisplayMode = SunburstLabelDisplayMode.Horizontal
sunburstControl.Label.AutoLayout = true
sunburstControl.Label.Visible = true
sunburstControl.ItemStyle.TextColor = Color.DarkSlateBlue
sunburstControl.ItemStyle.TextGlowColor = Color.White
The example above uses the following API members:
| Member | Description |
|---|---|
| SunburstLabel.TextPattern | Gets or sets the pattern that formats the Sunburst’s label text. |
| SunburstLabel.DisplayMode | Specifies how to align a label within a sunburst item. |
| SunburstLabel.AutoLayout | Indicates whether the adaptive layout is enabled for sunburst item labels. |
| SunburstLabel.Visible | Specifies the visibility of sunburst item labels. |
| SunburstControl.ItemStyle | Returns the sunburst item appearance settings. |
| HierarchicalItemStyle.TextColor | Gets or sets a treemap / sunburst item text color. |
| SunburstItemStyle.TextGlowColor | Gets or sets the glow color of the sunburst item’s text. |
See Also