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

TreeMapRangeColorizer Class

A colorizer that allows you to provide colors based on which range the TreeMapItem.Value belongs to.

Namespace: DevExpress.Xpf.TreeMap

Assembly: DevExpress.Xpf.TreeMap.v19.2.dll

Declaration

public class TreeMapRangeColorizer :
    TreeMapPaletteColorizerBase

Remarks

This class introduces the TreeMapRangeColorizer.RangeStops property that allows specifying range stops used to determine to which range a value belongs, and the TreeMapRangeColorizer.GroupColor allowing you to configure the color used to color groups.

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

Example

To color tree map items using the Range Colorizer, do the following.

<dxtm:TreeMapControl.Colorizer>
    <dxtm:TreeMapRangeColorizer 
        RangeStops="1 2 4 8 16 32">
        <dxtm:CustomPalette>
            <Color>#FF5A19</Color>
            <Color>#FEAD2D</Color>
            <Color>#E5E335</Color>
            <Color>#ACE45C</Color>
            <Color>#6EC95C</Color>
        </dxtm:CustomPalette>
    </dxtm:TreeMapRangeColorizer>
</dxtm:TreeMapControl.Colorizer>

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the TreeMapRangeColorizer 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.

See Also