Back to Devexpress

SunburstGradientColorizer Class

windowsforms-devexpress-dot-xtratreemap-b6e9ad93.md

latest3.4 KB
Original Source

SunburstGradientColorizer Class

The colorizers that colors sunburst items using color gradients.

Namespace : DevExpress.XtraTreeMap

Assembly : DevExpress.XtraTreeMap.v25.2.dll

NuGet Package : DevExpress.TreeMap

Declaration

csharp
public class SunburstGradientColorizer :
    SunburstPaletteColorizerBase
vb
Public Class SunburstGradientColorizer
    Inherits SunburstPaletteColorizerBase

Remarks

The following sunburst uses the SunburstGradientColorizer to color items:

Example

This example demonstrates how to use SunburstGradientColorizer to color sunburst items.

The Gradient Colorizer colorizes sunburst items or item groups using gradients. Color intensity depends on item value. Assign a SunburstGradientColorizer object to the SunburstControl.Colorizer property to color sunburst items using gradients.

You can use the SunburstGradientColorizer.Min and SunburstGradientColorizer.Max properties to set the color transparency for items with minimum and maximum values.

Use the SunburstGradientColorizer.Mode property to specify a gradient distribution mode.

The SunburstGradientColorizer.GradientColor property sets the color that is mixed with an item’s color.

Use the SunburstPaletteColorizerBase.Palette property to define a palette the colorizer uses to paint items.

csharp
sunburst.Colorizer = new SunburstGradientColorizer {
    Min = 0.6,
    Max = 1,
    Mode = GradientColorizerMode.ByGroupLevel,
    GradientColor = Color.White,
    Palette = Palette.Office2019Palette
};
vb
sunburst.Colorizer = New SunburstGradientColorizer With {
    .Min = 0.6,
    .Max = 1,
    .Mode = GradientColorizerMode.ByGroupLevel,
    .GradientColor = Color.White
    .Palette = Palette.Office2019Palette
}

Implements

ISunburstColorizer

Inheritance

Object HierarchicalElement SunburstElement SunburstColorizerBase SunburstPaletteColorizerBase SunburstGradientColorizer

See Also

SunburstGradientColorizer Members

DevExpress.XtraTreeMap Namespace