Back to Devexpress

ColorPickEdit Class

windowsforms-devexpress-dot-xtraeditors-17f62429.md

latest4.1 KB
Original Source

ColorPickEdit Class

An advanced drop-down color picker that supports multiple palettes (a predefined Web and System color palette) from which to choose colors.

Namespace : DevExpress.XtraEditors

Assembly : DevExpress.XtraEditors.v25.2.dll

NuGet Package : DevExpress.Win.Navigation

Declaration

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

The following members return ColorPickEdit objects:

Remarks

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

The visibility of these palettes is specified by the following properties:

You can replace built-in colors displayed in the Theme Colors and Standard Color groups in the Custom tab using 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 in this dialog:

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.

Implements

IXtraResizableControl

Inheritance

Show 14 items

Object MarshalByRefObject Component Control DevExpress.XtraEditors.XtraControl ControlBase BaseControl BaseEdit TextEdit ButtonEdit PopupBaseEdit ColorEdit ColorPickEditBase ColorPickEdit

See Also

ColorPickEdit Members

DevExpress.XtraEditors Namespace