Skip to main content
A newer version of this page is available. .

TreeMapPaletteColorizer Class

The colorizer that colors tree map items using a palette.

Namespace: DevExpress.XtraTreeMap

Assembly: DevExpress.XtraTreeMap.v18.1.dll

Declaration

public class TreeMapPaletteColorizer :
    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.

void ConfigureTreeMapColorizer() {
    treeMap.Colorizer = new TreeMapPaletteColorizer {
        ColorizeGroups = true,
        Palette = Palette.Office2016Palette
    };
}

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the TreeMapPaletteColorizer class.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

Implements

See Also