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.1.dll

Declaration

[DefaultBindingPropertyEx("Color")]
public class ColorPickEdit :
    ColorPickEditBase
<DefaultBindingPropertyEx("Color")>
Public Class ColorPickEdit
    Inherits ColorPickEditBase

Returned By

The RepositoryItemColorPickEdit.OwnerEdit property returns an instance of ColorPickEdit.

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