In This Article

StandardColorPicker Class

Provides a standard color picker that can be used in a drop-down.

public class StandardColorPicker : DpiAwareControl, IDisposable, IDpiAwareElement
Inheritance:
object MarshalByRefObject Component Control DpiAwareControl object
Implements:
IDisposable IDpiAwareElement

Constructors

StandardColorPicker()

Initializes a new instance of the StandardColorPicker class.

public StandardColorPicker()

Remarks

The default constructor initializes all fields to their default values.

Properties

DefaultSize

Gets the default size of the control.

protected override Size DefaultSize { get; }

Property Value

Size:

The default Size of the control.

SelectedColor

Gets the selected color in the popup.

[Browsable(false)]
public Color SelectedColor { get; }

Property Value

Color:

The selected Color in the popup.

Methods

OnSelectedColorChanged(EventArgs)

Raises the SelectedColorChanged event.

protected virtual void OnSelectedColorChanged(EventArgs e)
Parameter Type Description
e EventArgs

An EventArgs that contains the event data.

Events

SelectedColorChanged

Occurs after the value of the SelectedColor property changes.

public event EventHandler SelectedColorChanged

Event Type

EventHandler

Remarks

Use this event to perform any processing that should occur after the selection changes.

Inherited Members

Extension Methods