RadColorDialog
Represents a dialog that can be used to select color with rich UI and extended functionality.
Definition
Namespace:Telerik.WinControls
Assembly:Telerik.WinControls.dll
Syntax:
[TelerikToolboxCategory("Dialogs")]
public class RadColorDialog : CommonDialog, IComponent, IDisposable
Inheritance: objectMarshalByRefObjectComponentCommonDialogRadColorDialog
Implements:
Constructors
Initializes a new instance of the RadColorDialog class.
public RadColorDialog()
Properties
Gets the instance of IRadColorDialog, which incorporates various settings of the underlying color selection Form and ColorSelector user control.
[Browsable(false)]
public IRadColorDialog ColorDialogForm { get; }
Gets the user-defined colors. References to CustomColors of ColorDialogForm.
[Browsable(false)]
public Color[] CustomColors { get; }
Gets or sets the selected color that was previously selected. References to OldColor of ColorDialogForm.
public Color OldColor { get; set; }
Gets or sets a value indicating whether control's elements are aligned to support locales using right-to-left fonts.
public virtual RightToLeft RightToLeft { get; set; }
One of the RightToLeft values. The default is Inherit.
Exceptions: InvalidEnumArgumentExceptionThe assigned value is not one of the RightToLeft values.
Gets or sets the selected color. References to SelectedColor of ColorDialogForm.
public Color SelectedColor { get; set; }
Gets or sets the selected HSL color. References to SelectedHslColor of ColorDialogForm.
public HslColor SelectedHslColor { get; set; }
Methods
Releases the unmanaged resources used by the RadColorDialog 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:
Resets the properties of a color dialog box to their default values. Replaces the underlying ColorDialogForm with new instance.
public override void Reset()
Overrides:
Shows the modal dialog box with the specified owner.