Class ColorDropDown
Represents a drop-down control that allows to choose a color.
Inheritance
System.Object
System.MarshalByRefObject
System.ComponentModel.Component
System.Windows.Forms.Control
System.Windows.Forms.ScrollableControl
System.Windows.Forms.ToolStrip
System.Windows.Forms.ToolStripDropDown
ColorDropDown
Namespace: FastReport.Controls
Assembly: FastReport.dll
Syntax
public class ColorDropDown : ToolStripDropDown, IDropTarget, ISynchronizeInvoke, IWin32Window, IBindableComponent, IComponent, IDisposable
Remarks
This control may be useful if you write own components for FastReport.
Constructors
ColorDropDown()
Initializes a new instance of the ColorDropDown class with default settings.
Declaration
public ColorDropDown()
Properties
Color
Gets or sets the selected color.
Declaration
public Color Color { get; set; }
Property Value
Type | Description |
---|---|
System.Drawing.Color |
Owner
Gets or sets the control that owns this dropdown.
Declaration
public Control Owner { get; set; }
Property Value
Type | Description |
---|---|
System.Windows.Forms.Control |
Remarks
Set the Owner to onscreen control that initiates dropdown. This control will be used to calculate dpi-dependent sizes.
Methods
OnOpening(CancelEventArgs)
Declaration
protected override void OnOpening(CancelEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
System.ComponentModel.CancelEventArgs | e |
Overrides
System.Windows.Forms.ToolStripDropDown.OnOpening(System.ComponentModel.CancelEventArgs)
SetStyle(UIStyle)
Sets the UI style.
Declaration
public void SetStyle(UIStyle style)
Parameters
Type | Name | Description |
---|---|---|
UIStyle | style | The style to set. |
Events
ColorSelected
This event is raised when you select a color.
Declaration
public event EventHandler ColorSelected
Event Type
Type | Description |
---|---|
System.EventHandler |