Skip to main content
A newer version of this page is available. .

ColorPickEdit Class

An advanced dropdown color picker that supports multiple palettes (a predefined color palette, Web and System) to choose colors from.

Namespace: DevExpress.XtraEditors

Assembly: DevExpress.XtraEditors.v20.2.dll

NuGet Package: DevExpress.Win.Navigation

Declaration

[DefaultBindingPropertyEx("Color")]
public class ColorPickEdit :
    ColorPickEditBase

The following members return ColorPickEdit objects:

Remarks

The ColorPickEdit allows a user to pick a color from one of palettes: a predefined color palette, Web and System.

ColorPickEdit

The visibility of these palettes is specified by the following settings: Properties.ShowCustomColors, Properties.ShowWebColors and Properties.ShowSystemColors properties. You can substitute built-in colors displayed in the Theme Colors and Standard Color groups in the Custom tab via the Properties.ThemeColors and Properties.StandardColors properties.

A click on the More Colors button in the Custom tab opens the “Select Color” dialog. A user can pick any color using the RGB or HSB color model via this dialog:

ColorPickEdit-SelectColorDialog

To hide the More Colors button, set the Properties.ShowMoreColorsButton property to false. To customize the dialog’s settings, use the Properties.ColorDialogOptions property and ColorPickDialogShowing event.

The editor’s inherited ColorEdit.Color property returns the color selected by a user. You can use this property to set a custom color in code.

See Also