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

TreeMapGradientColorizer Class

The colorizer that colors tree map items from the TreeMapGradientColorizer.StartColor to the TreeMapGradientColorizer.EndColor using a gradient.

Namespace: DevExpress.XtraTreeMap

Assembly: DevExpress.XtraTreeMap.v18.1.dll

Declaration

public class TreeMapGradientColorizer :
    TreeMapColorizerBase

Remarks

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

Example

To color each tree map item depending on its value colors, use the TreeMapGradientColorizer class. Assign an instance of the class to the TreeMapControl.Colorizer property. The TreeMapGradientColorizer.StartColor property allows you to specify the color for an item with the maximum value, and the TreeMapGradientColorizer.EndColor property allows you to specify the color for an item with the minimum value.

void CreateTreeMapColorizer() {
    treeMap.Colorizer = new TreeMapGradientColorizer {
        StartColor = Color.Black,
        EndColor = Color.White
    };
}

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

Inheritance

See Also