Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

TreeMapControl.Colorizer Property

Gets or sets the colorizer used to colorize TreeMap items.

Namespace: DevExpress.XtraTreeMap

Assembly: DevExpress.XtraTreeMap.v24.2.UI.dll

NuGet Package: DevExpress.Win.TreeMap

#Declaration

[XtraSerializableProperty(XtraSerializationVisibility.Hidden)]
public ITreeMapColorizer Colorizer { get; set; }

#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
    };
}
See Also