Class ColorComboBox
Represents a combobox 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.ContainerControl
System.Windows.Forms.UserControl
ColorComboBox
Namespace: FastReport.Controls
Assembly: FastReport.dll
Syntax
public class ColorComboBox : UserControl, IDropTarget, ISynchronizeInvoke, IWin32Window, IBindableComponent, IComponent, IDisposable, IContainerControl
Remarks
This control may be useful if you write own components for FastReport.
Constructors
ColorComboBox()
Initializes a new instance of the ColorComboBox class with default settings.
Declaration
public ColorComboBox()
Properties
Color
Gets or sets the selected color.
Declaration
public Color Color { get; set; }
Property Value
Type | Description |
---|---|
System.Drawing.Color |
ShowColorName
Gets or sets value indicating whether it is necessary to show a color name in a combobox.
Declaration
public bool ShowColorName { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
Methods
Dispose(Boolean)
Declaration
protected override void Dispose(bool disposing)
Parameters
Type | Name | Description |
---|---|---|
System.Boolean | disposing |
Overrides
System.Windows.Forms.ContainerControl.Dispose(System.Boolean)
OnLayout(LayoutEventArgs)
Declaration
protected override void OnLayout(LayoutEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.Forms.LayoutEventArgs | e |
Overrides
System.Windows.Forms.ContainerControl.OnLayout(System.Windows.Forms.LayoutEventArgs)
OnPaint(PaintEventArgs)
Declaration
protected override void OnPaint(PaintEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.Forms.PaintEventArgs | e |
Overrides
System.Windows.Forms.Control.OnPaint(System.Windows.Forms.PaintEventArgs)
OnResize(EventArgs)
Declaration
protected override void OnResize(EventArgs e)
Parameters
Type | Name | Description |
---|---|---|
System.EventArgs | e |
Overrides
System.Windows.Forms.UserControl.OnResize(System.EventArgs)
Events
ColorSelected
This event is raised when you select a color.
Declaration
public event EventHandler ColorSelected
Event Type
Type | Description |
---|---|
System.EventHandler |