RadColorBox
Represents a color editor box. The RadColorBox class is a simple wrapper for the RadColorBoxElement class. The RadColorBox acts to transfer events to and from its corresponding RadColorBoxElement. The RadColorBoxElement which is essentially the RadColorBox control may be nested in other telerik controls.
Definition
Namespace:Telerik.WinControls.UI
Assembly:Telerik.WinControls.UI.dll
Syntax:
[TelerikToolboxCategory("Editors")]
[DefaultBindingProperty("Value")]
public class RadColorBox : RadEditorControl, IDropTarget, ISynchronizeInvoke, IWin32Window, IBindableComponent, IComponent, IDisposable, INotifyPropertyChanged, ISupportInitializeNotification, ISupportInitialize, IComponentTreeHandler, ILayoutHandler, IAnalyticsProvider
Inheritance: objectMarshalByRefObjectComponentControlScrollableControlRadControlRadEditorControlRadColorBox...
Implements:
Inherited Members
Constructors
Initializes a new instance of the RadColorBox class.
public RadColorBox()
Properties
Gets or sets whether the edit control is auto-sized.
[Browsable(true)]
public override bool AutoSize { get; set; }
Overrides:
Gets the RadColorBoxElement of this control.
[Browsable(false)]
public RadColorBoxElement ColorBoxElement { get; }
Gets the RadColorDialog of this control.
[Browsable(false)]
public RadColorDialog ColorDialog { get; }
Gets the default size for the RadColorBox control.
protected override Size DefaultSize { get; }
A Size structure representing the default dimensions of the control.
Overrides:
Gets or sets a value indicating whether users can input text directly into the text field.
[Browsable(true)]
public bool ReadOnly { get; set; }
Methods
Creates the child elements for the RadColorBox control.
protected override void CreateChildItems(RadElement parent)
The parent element to which child elements will be added.
Overrides:
Creates the RadColorBoxElement that will be used by this control.
protected virtual RadColorBoxElement CreateColorBoxElement()
A new instance of RadColorBoxElement.
Releases the unmanaged resources used by the RadColorBox and optionally releases the managed resources.
protected override void Dispose(bool disposing)
true to release both managed and unmanaged resources; false to release only unmanaged resources.
Overrides:
Determines whether the specified key is an input key that should be processed by the control.
Processes changes to the AutoSize property and adjusts the element stretching behavior accordingly.
protected override void ProcessAutoSizeChanged(bool value)
true if AutoSize is enabled; otherwise, false.
Overrides:
Resets the BackColor theme overrides for the ColorBoxElement and applies the default theme values.
protected override void ResetBackColorThemeOverrides()
Overrides:
Resets the ForeColor theme overrides for the ColorBoxElement and applies the default theme values.
protected override void ResetForeColorThemeOverrides()
Overrides:
Sets the BackColor theme overrides for all relevant visual states of the ColorBoxElement.
protected override void SetBackColorThemeOverrides()
Overrides:
Sets the ForeColor theme overrides for all relevant visual states of the ColorBoxElement.
protected override void SetForeColorThemeOverrides()
Overrides:
Unwires the events between the RadColorBox control and its underlying RadColorBoxElement.
protected virtual void UnwireEvents()
Wires the events between the RadColorBox control and its underlying RadColorBoxElement.
protected virtual void WireEvents()
Events
Occurs after the color dialog is closed.
public event DialogClosedEventHandler DialogClosed
Occurs after the editor value is changed.
public event EventHandler ValueChanged
Occurs right before the value is changed. This is a cancelable event.
public event ValueChangingEventHandler ValueChanging