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

CustomPalette(String, IEnumerable<Color>, Boolean) Constructor

In This Article

Initializes a new instance of the CustomPalette class with the specified settings.

Namespace: DevExpress.Xpf.Editors

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

NuGet Package: DevExpress.Wpf.Core

#Declaration

public CustomPalette(
    string name,
    IEnumerable<Color> colors,
    bool calcBorder
)

#Parameters

Name Type Description
name String

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

colors IEnumerable<Color>

The list of colors. This value is assigned to the ColorPalette.Colors property.

calcBorder Boolean

true to hide top/bottom borders between neighboring color chips; otherwise, false. This value is assigned to the ColorPalette.CalcBorder property.

See Also