windowsforms-devexpress-dot-xtratreemap-9ce1d7e7.md
The colorizer that colors tree map items from the TreeMapGradientColorizer.StartColor to the TreeMapGradientColorizer.EndColor using a gradient.
Namespace : DevExpress.XtraTreeMap
Assembly : DevExpress.XtraTreeMap.v25.2.dll
NuGet Package : DevExpress.TreeMap
public class TreeMapGradientColorizer :
TreeMapColorizerBase
Public Class TreeMapGradientColorizer
Inherits TreeMapColorizerBase
For more information about colorizers, refer to the Colorizers topic.
To color each tree map item depending on its value colors, use the TreeMapGradientColorizer class. Assign an instance of the class to the TreeMapControl.Colorizer property. The TreeMapGradientColorizer.StartColor property allows you to specify the color for an item with the maximum value, and the TreeMapGradientColorizer.EndColor property allows you to specify the color for an item with the minimum value.
void CreateTreeMapColorizer() {
treeMap.Colorizer = new TreeMapGradientColorizer {
StartColor = Color.Black,
EndColor = Color.White
};
}
Private Sub CreateTreeMapColorizer()
treeMap.Colorizer = New TreeMapGradientColorizer With {.StartColor = Color.Black, .EndColor = Color.White}
End Sub
Object HierarchicalElement TreeMapElement TreeMapColorizerBase TreeMapGradientColorizer
See Also