New to Telerik UI for WinFormsStart a free 30-day trial

Properties

Updated over 6 months ago
PropertyDescriptionImage
ColorDialogFormGets the instance of RadColorDialogForm, which incorporates various settings of the underlaying color selection Form and ColorSelector user control.
IconGets or sets the icon displayed for this dialog.
RadColorDialogForm.ActiveModeDetermines the currently selected tab.  Valid enumeration values from Telerik.WinControls.ColorPickerActiveMode are Basic, System, Web,Professional.
RadColorDialogForm.AllowColorPickFromScreenWhen true (the default) the "eye dropper" tool is displayed.WinForms RadColorDialog AllowColorPickFromScreen
RadColorDialogForm.AllowColorSavingToggles the "Add a custom color" button visibility.WinForms RadColorDialog AllowColorSaving
BackColorThe background color of the color selector as a whole. You can also set this color to be Transparent to have it blend in with your other UI elements.
ForeColorThe color for labels and text entry.
SelectedColorIn the figure below the SelectedColor is labeled as "New".
RadColorDialogForm.OldColorIn the figure below the OldColor is labeled as "Current".WinForms RadColorDialog OldColor
RadColorDialogForm.ShowBasicColorsIf true (the default) the corresponding Basic tab is displayed.
RadColorDialogForm.ShowSystemColorsIf true (the default) the corresponding System tab is displayed.
RadColorDialogForm.ShowWebColorsIf true (the default) the corresponding Web tab is displayed.
RadColorDialogForm.ShowProfessionalColorsIf true (the default) the corresponding Professional tab is displayed.
RadColorDialogForm.AllowEditHEXValueIf true (the default) enables hexadecimal entry of color values.
RadColorDialogForm.ShowHEXColorValueIf true (the default) displays the hexadecimal entry of color values.WinForms RadColorDialog ShowHEXColorValue
RadColorDialogForm.CustomColors[]This is a read-only array of Color objects.  You can query the contents of the custom colors displayed along the bottom of the selector.WinForms RadColorDialog CustomColors
RadColorDialogForm.RadColorSelectorGets the color selector
RadColorDialogForm.AddNewColorButtonTextGets or sets the text of the add new color button.
RadColorDialogForm.BasicTabHeadingGets or sets the heading of the basic colors tab.
RadColorDialogForm.SystemTabHeadingGets or sets the heading of the system colors tab.
RadColorDialogForm.WebTabHeadingGets or sets the heading of the web colors tab.
RadColorDialogForm.ProfessionalTabHeadingGets or sets the heading of the professional colors tab.
RadColorDialogForm.SelectedColorLabelHeadingGets or sets the heading of the selected color label.
RadColorDialogForm.OldColorLabelHeadingGets or sets the heading of the old color label.
RadColorDialogForm.SelectedColorGets or sets the new color.
RadColorDialogForm.SelectedHslColorGets or sets selected HSL color.
RadColorSelector.SaveCustomColorsGets or sets a value indicatign whether custom colors should be save upon exiting the color picker.

You can find below how to enlist all custom colors in RadColorDialog:

Enlist the current custom colors in RadColorDialog

C#
private void radButton1_Click(object sender, EventArgs e)
{
    StringBuilder sb = new StringBuilder();
    foreach (Color color in radColorDialog1.CustomColors)
    {
        sb.Append(color.ToString());
        sb.Append(System.Environment.NewLine);
    }
    MessageBox.Show(sb.ToString());
}

Methods

MethodDescription
ResetResets the properties of a color dialog box to their default values. Replaces the underlaying ColorDialogForm with new instance.

Events

EventDescription
RadColorDialogForm.ColorChangedFires when the selected color has changed.
RadColorSelector.OkButtonClickedFires when the OK button is clicked
RadColorSelector.CancelButtonClickedFires when the Cancel button is clicked
RadColorSelector.CustomColorsConfigLocationNeededFires when custom colors configuration is about to be saved or loaded.Can be used to change the default location of the configuration file.

See Also

In this article
See Also
Not finding the help you need?
Contact Support