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

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.v24.2.dll

NuGet Package: DevExpress.TreeMap

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

#Implements

See Also