Back to Devexpress

TreeMapAppearance.SelectedLeafStyle Property

windowsforms-devexpress-dot-xtratreemap-dot-treemapappearance-4e1be974.md

latest2.0 KB
Original Source

TreeMapAppearance.SelectedLeafStyle Property

Returns the style that applies to selected treemap leaves.

Namespace : DevExpress.XtraTreeMap

Assembly : DevExpress.XtraTreeMap.v25.2.dll

NuGet Package : DevExpress.TreeMap

Declaration

csharp
public TreeMapItemLeafStyle SelectedLeafStyle { get; }
vb
Public ReadOnly Property SelectedLeafStyle As TreeMapItemLeafStyle

Property Value

TypeDescription
TreeMapItemLeafStyle

The treemap item leaf style.

|

Remarks

The following code customizes the appearance for selected treemap items:

csharp
treeMapControl1.SelectionMode = ElementSelectionMode.Single;
treeMapControl1.Appearance.SelectedLeafStyle.Fill = Color.DarkGray;
treeMapControl1.Appearance.SelectedLeafStyle.FillStyle = new SolidFillStyle();
vb
treeMapControl1.SelectionMode = ElementSelectionMode.[Single]
treeMapControl1.Appearance.SelectedLeafStyle.Fill = Color.DarkGray
treeMapControl1.Appearance.SelectedLeafStyle.FillStyle = New SolidFillStyle()

The image below illustrates the results:

See Also

Highlighting and Selection

TreeMapAppearance Class

TreeMapAppearance Members

DevExpress.XtraTreeMap Namespace