TreeMapControl.Colorizer Property
Gets or sets the colorizer used to colorize TreeMap items.
Namespace: DevExpress.XtraTreeMap
Assembly: DevExpress.XtraTreeMap.v20.2.UI.dll
NuGet Package: DevExpress.Win.TreeMap
Declaration
Property Value
Type | Description |
---|---|
ITreeMapColorizer | An object of a class implementing the ITreeMapColorizer interface. |
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
};
}
Related GitHub Examples
The following code snippets (auto-collected from DevExpress Examples) contain references to the Colorizer property.
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.