Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

TreeMapAppearance.SelectedLeafStyle Property

Returns the style that applies to selected treemap leaves.

Namespace: DevExpress.XtraTreeMap

Assembly: DevExpress.XtraTreeMap.v24.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