| |
How to: Color TreeMap Using the Palette Colorizer
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.
Form1.cs |
void ConfigureTreeMapColorizer() {
treeMap.Colorizer = new TreeMapPaletteColorizer {
ColorizeGroups = true,
Palette = Palette.Office2016Palette
};
}
|
Form1.vb |
Private Sub ConfigureTreeMapColorizer()
treeMap.Colorizer = New TreeMapPaletteColorizer With {.ColorizeGroups = True, .Palette = Palette.Office2016Palette}
End Sub
|
Is this topic helpful?
Additional Feedback
Close
|