[]
        
(Showing Draft Content)

C1.Win.C1Input.C1ColorPicker

C1ColorPicker Class

Represents a Windows color picker control supporting additional visual styles.

Namespace: C1.Win.C1Input
Assembly: C1.Win.C1Input.4.8.dll
Syntax
[ToolboxBitmap(typeof(C1ColorPicker), "C1ColorPicker.png")]
public class C1ColorPicker : C1BasePicker, IDropTarget, ISynchronizeInvoke, IWin32Window, IBindableComponent, IComponent, IDisposable, ISupportInitialize, ICustomTypeDescriptor

Constructors

Name Description
C1ColorPicker()

Initializes a new instance of the C1ColorPicker class.

Properties

Name Description
AllowEmpty

Gets or sets a value indicating whether the empty color can de selected.

AllowTransparent

Gets or sets a value indicating whether the transparent color can de selected.

Color

Gets or sets the current color.

DefaultDropDownFormClassName

Specifies form class that is used by default as the dropdown for the control.

DefaultThemeRootPath

Default path for the control in xml theme file.

EmptyColorCaption

Gets or sets a caption for the empty color.

SelectionView

Gets or sets the item's selection view.

ShowImage

Determines if image should be shown.

Text
Value

Gets or sets the current color representation of the visual information contained in the control.

Methods

Name Description
DrawImage(Graphics, Rectangle)

Draws image in the control.

GetImageSize()

Returns image size.

GetPreferredSize(Size)
OnColorChanged(EventArgs)
OnKeyDown(KeyEventArgs)

This method is for internal use only.

OnModalButtonClick(EventArgs)

This method is for internal use only.

OnValueChanged(EventArgs)

This method is for internal use only.

ResetColor()
TextToValue(ref TextToValueArgs)

Should be overridden in deviced class and convert string to value.

ValueToText(ref ValueToTextArgs)

Should be overridden in derived class and convert value to string.

Events

Name Description
ColorChanged

Fires when the Color property changes.