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.
SelectedColor
Gets the selected color in the popup.
[Browsable(false)]
public Color SelectedColor { get; }
Property Value
Methods
OnSelectedColorChanged(EventArgs)
Raises the SelectedColorChanged
event.
protected virtual void OnSelectedColorChanged(EventArgs e)
Parameter | Type | Description |
---|---|---|
e | EventArgs | An |
Events
SelectedColorChanged
Occurs after the value of the SelectedColor property changes.
public event EventHandler SelectedColorChanged
Event Type
Remarks
Use this event to perform any processing that should occur after the selection changes.
Inherited Members
- DpiAwareControl.DpiScaleChanged(SizeF)
- DpiAwareControl.OnDpiChangedAfterParent(EventArgs)
- DpiAwareControl.DpiScaleFactor
- MarshalByRefObject.GetLifetimeService()
- MarshalByRefObject.InitializeLifetimeService()
- MarshalByRefObject.MemberwiseClone(bool)
- object.GetType()
- object.MemberwiseClone()
- object.ToString()
- object.Equals(object)
- object.Equals(object, object)
- object.ReferenceEquals(object, object)
- object.GetHashCode()
Extension Methods
- DpiAwareElementExtensions.AutoScaleFont(IDpiAwareElement, Font)
- DpiAwareElementExtensions.AutoScaleFontSize(IDpiAwareElement, float)
- DpiAwareElementExtensions.ScaleLogicalValue(IDpiAwareElement, Padding)
- DpiAwareElementExtensions.ScaleLogicalValue(IDpiAwareElement, Point)
- DpiAwareElementExtensions.ScaleLogicalValue(IDpiAwareElement, Rectangle)
- DpiAwareElementExtensions.ScaleLogicalValue(IDpiAwareElement, Size)
- DpiAwareElementExtensions.ScaleLogicalValue(IDpiAwareElement, SizeF)
- DpiAwareElementExtensions.ScaleLogicalValue(IDpiAwareElement, int)
- DpiAwareElementExtensions.ScaleLogicalValue(IDpiAwareElement, float)
- DpiAwareElementExtensions.ScaleLogicalValue(IDpiAwareElement, Padding)
- DpiAwareElementExtensions.SynchronizeScaleFactorWithChildren(IDpiAwareElement)
- ControlExtensions.FindAncestorOrSelf<T>(Control)
- ControlExtensions.FindAncestorOrSelf<T>(Control, Predicate<T>)
- ControlExtensions.FindAncestor<T>(Control)
- ControlExtensions.FindAncestor<T>(Control, Predicate<T>)