Skip to main content

ColorPalette.CreateGradientPalette(String, ColorCollection) Method

Returns a palette filled with gradient colors from specified base colors.

Namespace: DevExpress.Xpf.Editors

Assembly: DevExpress.Xpf.Core.v14.2.dll

#Declaration

public static ColorPalette CreateGradientPalette(
    string name,
    ColorCollection source
)

#Parameters

Name Type Description
name String

A String value that specifies the palette name. This value is assigned to the ColorPalette.Name property.

source ColorCollection

The collection of base colors.

#Returns

Type Description
ColorPalette

A ColorPalette descendant that represents a palette with gradient colors.

#Remarks

The CreateGradientPalette method creates a new palette with the specified name and generates gradient colors for each base color in source.

See Also