Back to Devexpress

TreeMapPaletteColorizer Class

windowsforms-devexpress-dot-xtratreemap-71dd7db0.md

latest2.9 KB
Original Source

TreeMapPaletteColorizer Class

The colorizer that colors tree map items using a palette.

Namespace : DevExpress.XtraTreeMap

Assembly : DevExpress.XtraTreeMap.v25.2.dll

NuGet Package : DevExpress.TreeMap

Declaration

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

Remarks

This colorizer colors each tree map in a new palette color.

If the TreeMapPaletteColorizer.ColorizeGroups is set to true , this colorizer colors each group using a new palette color.

For more information about colorizers, refer to the Colorizers topic.

Example

To color TreeMap using a Palette, assign a TreeMapPaletteColorizer object to the TreeMapControl.Colorizer property. To color all group items using one color, set the TreeMapPaletteColorizer.ColorizeGroups property of the colorizer to true. To specify a palette that should be used to color items, assign an instance of the Palette derived class to the TreeMapPaletteColorizerBase.Palette property of the colorizer.

csharp
void ConfigureTreeMapColorizer() {
    treeMap.Colorizer = new TreeMapPaletteColorizer {
        ColorizeGroups = true,
        Palette = Palette.Office2016Palette
    };
}
vb
Private Sub ConfigureTreeMapColorizer()
    treeMap.Colorizer = New TreeMapPaletteColorizer With {.ColorizeGroups = True, .Palette = Palette.Office2016Palette}
End Sub

Implements

ITreeMapColorizer

Inheritance

Object HierarchicalElement TreeMapElement TreeMapColorizerBase TreeMapPaletteColorizerBase TreeMapPaletteColorizer

See Also

TreeMapPaletteColorizer Members

DevExpress.XtraTreeMap Namespace