TreeMapControl.Colorizer Property
Gets or sets the colorizer used to colorize TreeMap items.
Namespace: DevExpress.XtraTreeMap
Assembly: DevExpress.XtraTreeMap.v18.2.dll
Declaration
public ITreeMapColorizer Colorizer { get; set; }
Public Property Colorizer As ITreeMapColorizer
Property Value
Type | Description |
---|---|
ITreeMapColorizer | An object of a class implementing the ITreeMapColorizer interface. |
Examples
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.
NOTE
A complete sample project is available at https://github.com/DevExpress-Examples/how-to-manually-populate-treemap-with-data-t360867
void ConfigureTreeMapColorizer() {
treeMap.Colorizer = new TreeMapPaletteColorizer {
ColorizeGroups = true,
Palette = Palette.Office2016Palette
};
}