windowsforms-devexpress-dot-xtratreemap-80252740.md
The colorizer that colors the tree map items in colors blended from group colors and gradient colors in a proportion based on the tree map item value.
Namespace : DevExpress.XtraTreeMap
Assembly : DevExpress.XtraTreeMap.v25.2.dll
NuGet Package : DevExpress.TreeMap
public class TreeMapGroupGradientColorizer :
TreeMapPaletteColorizerBase
Public Class TreeMapGroupGradientColorizer
Inherits TreeMapPaletteColorizerBase
This class introduces the TreeMapGroupGradientColorizer.GradientColor that allows specifying the mixing color, and the TreeMapGroupGradientColorizer.Min and TreeMapGroupGradientColorizer.Max properties specifying the maximum and minimum of portion of the color assigned to the item’s group.
For more information about colorizers, refer to the Colorizers topic.
To color each tree map group using similar colors, use the TreeMapGroupGradientColorizer class. Assign an instance of the class to the TreeMapControl.Colorizer property. The TreeMapPaletteColorizerBase.Palette property specifies colors assigned to groups. The TreeMapGroupGradientColorizer.Max and TreeMapGroupGradientColorizer.Min properties configure the maximum and minimum portion of palette colors in colors assigned to items. The TreeMapGroupGradientColorizer.GradientColor property sets a color with which palette colors are mixed.
void ConfigureTreeMapColorizer() {
treeMap.Colorizer = new TreeMapGroupGradientColorizer {
GradientColor = Color.White,
Max = 1,
Min = 0.3,
Palette = Palette.Office2013Palette,
};
}
Private Sub ConfigureTreeMapColorizer()
treeMap.Colorizer = New TreeMapGroupGradientColorizer With {.GradientColor = Color.White, .Max = 1, .Min = 0.3, .Palette = Palette.Office2013Palette}
End Sub
Object HierarchicalElement TreeMapElement TreeMapColorizerBase TreeMapPaletteColorizerBase TreeMapGroupGradientColorizer
See Also