Skip to main content

TreeMapAppearance.SelectedLeafStyle Property

Returns the style that applies to selected treemap leaves.

Namespace: DevExpress.XtraTreeMap

Assembly: DevExpress.XtraTreeMap.v23.2.dll

NuGet Package: DevExpress.TreeMap

Declaration

public TreeMapItemLeafStyle SelectedLeafStyle { get; }

Property Value

Type Description
TreeMapItemLeafStyle

The treemap item leaf style.

Remarks

The following code customizes the appearance for selected treemap items:

treeMapControl1.SelectionMode = ElementSelectionMode.Single;
treeMapControl1.Appearance.SelectedLeafStyle.Fill = Color.DarkGray;
treeMapControl1.Appearance.SelectedLeafStyle.FillStyle = new SolidFillStyle();

The image below illustrates the results:

image

See Also