Back to Devexpress

TreeMapGroupGradientColorizer Class

windowsforms-devexpress-dot-xtratreemap-80252740.md

latest3.6 KB
Original Source

TreeMapGroupGradientColorizer Class

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

Declaration

csharp
public class TreeMapGroupGradientColorizer :
    TreeMapPaletteColorizerBase
vb
Public Class TreeMapGroupGradientColorizer
    Inherits TreeMapPaletteColorizerBase

Remarks

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.

Example

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.

csharp
void ConfigureTreeMapColorizer() {
    treeMap.Colorizer = new TreeMapGroupGradientColorizer {
        GradientColor = Color.White,
        Max = 1,
        Min = 0.3,
        Palette = Palette.Office2013Palette,
    };
}
vb
Private Sub ConfigureTreeMapColorizer()
    treeMap.Colorizer = New TreeMapGroupGradientColorizer With {.GradientColor = Color.White, .Max = 1, .Min = 0.3, .Palette = Palette.Office2013Palette}
End Sub

Implements

ITreeMapColorizer

Inheritance

Object HierarchicalElement TreeMapElement TreeMapColorizerBase TreeMapPaletteColorizerBase TreeMapGroupGradientColorizer

See Also

TreeMapGroupGradientColorizer Members

DevExpress.XtraTreeMap Namespace