ClassRadColorDialog
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:
Inherited Members
Constructors
RadColorDialog()
Initializes a new instance of the RadColorDialog class.
Declaration
public RadColorDialog()
Properties
ColorDialogForm
Gets the instance of IRadColorDialog, which incorporates various settings of the underlying color selection Form and ColorSelector user control.
Declaration
[Browsable(false)]
public IRadColorDialog ColorDialogForm { get; }
Property Value
CustomColors
Gets the user-defined colors. References to CustomColors of ColorDialogForm.
Declaration
[Browsable(false)]
public Color[] CustomColors { get; }
Property Value
Color[]
Icon
Gets or sets the icon displayed for this dialog.
OldColor
Gets or sets the selected color that was previously selected. References to OldColor of ColorDialogForm.
RightToLeft
Gets or sets a value indicating whether control's elements are aligned to support locales using right-to-left fonts.
Declaration
public virtual RightToLeft RightToLeft { get; set; }
Property Value
One of the RightToLeft values. The default is Inherit.
Exceptions
The assigned value is not one of the RightToLeft values.
SelectedColor
Gets or sets the selected color. References to SelectedColor of ColorDialogForm.
SelectedHslColor
Gets or sets the selected HSL color. References to SelectedHslColor of ColorDialogForm.
Declaration
public HslColor SelectedHslColor { get; set; }
Property Value
Methods
Dispose(bool)
Releases the unmanaged resources used by the RadColorDialog and optionally releases the managed resources.
Declaration
protected override void Dispose(bool disposing)
Parameters
disposing
true to release both managed and unmanaged resources; false to release only unmanaged resources.
Overrides
Reset()
Resets the properties of a color dialog box to their default values. Replaces the underlying ColorDialogForm with new instance.
Declaration
public override void Reset()
Overrides
RunDialog(IntPtr)
Shows the modal dialog box with the specified owner.
Declaration
protected override bool RunDialog(IntPtr hwndOwner)
Parameters
hwndOwner
A value that represents the window handle of the owner window for the common dialog box.
Returns
true if the dialog box was successfully run and the user clicked OK; otherwise, false.
Overrides