All docs
V20.1
20.2 (EAP/Beta)
20.1
19.2
19.1
The page you are viewing does not exist in version 19.1. This link will take you to the root page.
18.2
The page you are viewing does not exist in version 18.2. This link will take you to the root page.
18.1
The page you are viewing does not exist in version 18.1. This link will take you to the root page.
17.2
The page you are viewing does not exist in version 17.2. This link will take you to the root page.

TreeMapAppearance.GroupStyle Property

Returns the style of treemap groups.

Namespace: DevExpress.XtraTreeMap

Assembly: DevExpress.XtraTreeMap.v20.1.dll

Declaration

public TreeMapItemGroupStyle GroupStyle { get; }
Public ReadOnly Property GroupStyle As TreeMapItemGroupStyle

Property Value

Type Description
TreeMapItemGroupStyle

An object that provides settings for a treemap group's appearance.

Examples

This example demonstrates how to customize a treemap's appearance.

The TreeMapControl.Appearance property provides access to the treemap's appearance options.

treeMapControl1.Appearance.GroupStyle.BorderColor = Color.Red;
treeMapControl1.GroupBorderVisible = DevExpress.Utils.DefaultBoolean.True;
treeMapControl1.Appearance.GroupStyle.Fill = Color.SlateGray;
treeMapControl1.Appearance.GroupStyle.Padding = new Padding(4);
treeMapControl1.Appearance.GroupStyle.LabelAlignment = StringAlignment.Center;
treeMapControl1.Appearance.GroupStyle.Font = new Font(FontFamily.GenericSerif, 20);
treeMapControl1.Appearance.GroupStyle.TextColor = Color.White;
treeMapControl1.Appearance.GroupStyle.SubGroupFont = new Font(FontFamily.GenericSerif, 14);
treeMapControl1.Appearance.GroupStyle.SubGroupTextColor = Color.DarkSlateGray;

treeMapControl1.Appearance.LeafStyle.BorderColor = Color.Green;
treeMapControl1.Appearance.LeafStyle.LabelAlignment = StringAlignment.Near;
treeMapControl1.Appearance.LeafStyle.TextGlowColor = Color.Transparent;
treeMapControl1.Appearance.LeafStyle.TextColor = Color.Blue;

treeMapControl1.Appearance.HighlightedLeafStyle.FillStyle = new HatchFillStyle { 
    HatchStyle = System.Drawing.Drawing2D.HatchStyle.Percent50, 
    Color2 = Color.Transparent 
};
See Also