Class
RadColorSelector

Represents a color selector control

Definition

Namespace:Telerik.WinControls.UI

Assembly:Telerik.WinControls.UI.dll

Syntax:

cs-api-definition
public class RadColorSelector : UserControl, IDropTarget, ISynchronizeInvoke, IWin32Window, IBindableComponent, IComponent, IDisposable, IContainerControl, IColorSelector, IAnalyticsProvider

Inheritance: objectMarshalByRefObjectComponentControlScrollableControlContainerControlUserControlRadColorSelector

Implements: IAnalyticsProviderIBindableComponentIColorSelectorIComponentIContainerControlIDisposableIDropTargetISynchronizeInvokeIWin32Window

Inherited Members UserControl.ValidateChildren()UserControl.ValidateChildren(ValidationConstraints)UserControl.OnCreateControl()UserControl.OnLoad(EventArgs)UserControl.OnResize(EventArgs)UserControl.OnMouseDown(MouseEventArgs)UserControl.WndProc(ref Message)UserControl.AutoSizeUserControl.AutoSizeModeUserControl.AutoValidateUserControl.BorderStyleUserControl.CreateParamsUserControl.DefaultSizeUserControl.AutoSizeChangedUserControl.AutoValidateChangedUserControl.LoadContainerControl.AdjustFormScrollbars(bool)ContainerControl.OnAutoValidateChanged(EventArgs)ContainerControl.OnFontChanged(EventArgs)ContainerControl.OnLayout(LayoutEventArgs)ContainerControl.OnParentChanged(EventArgs)ContainerControl.PerformAutoScale()ContainerControl.ProcessDialogChar(char)ContainerControl.ProcessDialogKey(Keys)ContainerControl.ProcessMnemonic(char)ContainerControl.ProcessTabKey(bool)ContainerControl.Select(bool, bool)ContainerControl.UpdateDefaultButton()ContainerControl.Validate()ContainerControl.Validate(bool)ContainerControl.AutoScaleDimensionsContainerControl.AutoScaleFactorContainerControl.AutoScaleModeContainerControl.BindingContextContainerControl.CanEnableImeContainerControl.ActiveControlContainerControl.CurrentAutoScaleDimensionsContainerControl.ParentFormScrollableControl.ScrollStateAutoScrollingScrollableControl.ScrollStateHScrollVisibleScrollableControl.ScrollStateVScrollVisibleScrollableControl.ScrollStateUserHasScrolledScrollableControl.ScrollStateFullDragScrollableControl.GetScrollState(int)ScrollableControl.OnMouseWheel(MouseEventArgs)ScrollableControl.OnPaintBackground(PaintEventArgs)ScrollableControl.OnPaddingChanged(EventArgs)ScrollableControl.OnVisibleChanged(EventArgs)ScrollableControl.ScaleControl(SizeF, BoundsSpecified)ScrollableControl.SetDisplayRectLocation(int, int)ScrollableControl.ScrollControlIntoView(Control)ScrollableControl.ScrollToControl(Control)ScrollableControl.OnScroll(ScrollEventArgs)ScrollableControl.SetAutoScrollMargin(int, int)ScrollableControl.SetScrollState(int, bool)ScrollableControl.AutoScrollScrollableControl.AutoScrollMarginScrollableControl.AutoScrollPositionScrollableControl.AutoScrollMinSizeScrollableControl.DisplayRectangleScrollableControl.HScrollScrollableControl.HorizontalScrollScrollableControl.VScrollScrollableControl.VerticalScrollScrollableControl.ScrollControl.GetAccessibilityObjectById(int)Control.SetAutoSizeMode(AutoSizeMode)Control.GetAutoSizeMode()Control.GetPreferredSize(Size)Control.AccessibilityNotifyClients(AccessibleEvents, int)Control.AccessibilityNotifyClients(AccessibleEvents, int, int)Control.BeginInvoke(Delegate)Control.BeginInvoke(Delegate, params object[])Control.BringToFront()Control.Contains(Control)Control.CreateAccessibilityInstance()Control.CreateControlsInstance()Control.CreateGraphics()Control.CreateHandle()Control.CreateControl()Control.DefWndProc(ref Message)Control.DestroyHandle()Control.DoDragDrop(object, DragDropEffects)Control.DrawToBitmap(Bitmap, Rectangle)Control.EndInvoke(IAsyncResult)Control.FindForm()Control.GetTopLevel()Control.RaiseKeyEvent(object, KeyEventArgs)Control.RaiseMouseEvent(object, MouseEventArgs)Control.Focus()Control.FromChildHandle(IntPtr)Control.FromHandle(IntPtr)Control.GetChildAtPoint(Point, GetChildAtPointSkip)Control.GetChildAtPoint(Point)Control.GetContainerControl()Control.GetScaledBounds(Rectangle, SizeF, BoundsSpecified)Control.GetNextControl(Control, bool)Control.GetStyle(ControlStyles)Control.Hide()Control.InitLayout()Control.Invalidate(Region)Control.Invalidate(Region, bool)Control.Invalidate()Control.Invalidate(bool)Control.Invalidate(Rectangle)Control.Invalidate(Rectangle, bool)Control.Invoke(Delegate)Control.Invoke(Delegate, params object[])Control.InvokePaint(Control, PaintEventArgs)Control.InvokePaintBackground(Control, PaintEventArgs)Control.IsKeyLocked(Keys)Control.IsInputChar(char)Control.IsInputKey(Keys)Control.IsMnemonic(char, string)Control.LogicalToDeviceUnits(int)Control.LogicalToDeviceUnits(Size)Control.ScaleBitmapLogicalToDevice(ref Bitmap)Control.NotifyInvalidate(Rectangle)Control.InvokeOnClick(Control, EventArgs)Control.OnAutoSizeChanged(EventArgs)Control.OnBackColorChanged(EventArgs)Control.OnBackgroundImageChanged(EventArgs)Control.OnBackgroundImageLayoutChanged(EventArgs)Control.OnBindingContextChanged(EventArgs)Control.OnCausesValidationChanged(EventArgs)Control.OnContextMenuChanged(EventArgs)Control.OnContextMenuStripChanged(EventArgs)Control.OnCursorChanged(EventArgs)Control.OnDockChanged(EventArgs)Control.OnEnabledChanged(EventArgs)Control.OnForeColorChanged(EventArgs)Control.OnNotifyMessage(Message)Control.OnParentBackColorChanged(EventArgs)Control.OnParentBackgroundImageChanged(EventArgs)Control.OnParentBindingContextChanged(EventArgs)Control.OnParentCursorChanged(EventArgs)Control.OnParentEnabledChanged(EventArgs)Control.OnParentFontChanged(EventArgs)Control.OnParentForeColorChanged(EventArgs)Control.OnParentRightToLeftChanged(EventArgs)Control.OnParentVisibleChanged(EventArgs)Control.OnPrint(PaintEventArgs)Control.OnTabIndexChanged(EventArgs)Control.OnTabStopChanged(EventArgs)Control.OnTextChanged(EventArgs)Control.OnClick(EventArgs)Control.OnClientSizeChanged(EventArgs)Control.OnControlAdded(ControlEventArgs)Control.OnControlRemoved(ControlEventArgs)Control.OnHandleCreated(EventArgs)Control.OnLocationChanged(EventArgs)Control.OnHandleDestroyed(EventArgs)Control.OnDoubleClick(EventArgs)Control.OnDragEnter(DragEventArgs)Control.OnDragOver(DragEventArgs)Control.OnDragLeave(EventArgs)Control.OnDragDrop(DragEventArgs)Control.OnGiveFeedback(GiveFeedbackEventArgs)Control.OnEnter(EventArgs)Control.InvokeGotFocus(Control, EventArgs)Control.OnGotFocus(EventArgs)Control.OnHelpRequested(HelpEventArgs)Control.OnInvalidated(InvalidateEventArgs)Control.OnKeyDown(KeyEventArgs)Control.OnKeyPress(KeyPressEventArgs)Control.OnKeyUp(KeyEventArgs)Control.OnLeave(EventArgs)Control.InvokeLostFocus(Control, EventArgs)Control.OnLostFocus(EventArgs)Control.OnMarginChanged(EventArgs)Control.OnMouseDoubleClick(MouseEventArgs)Control.OnMouseClick(MouseEventArgs)Control.OnMouseCaptureChanged(EventArgs)Control.OnMouseEnter(EventArgs)Control.OnMouseLeave(EventArgs)Control.OnDpiChangedBeforeParent(EventArgs)Control.OnDpiChangedAfterParent(EventArgs)Control.OnMouseHover(EventArgs)Control.OnMouseMove(MouseEventArgs)Control.OnMouseUp(MouseEventArgs)Control.OnMove(EventArgs)Control.OnPaint(PaintEventArgs)Control.OnQueryContinueDrag(QueryContinueDragEventArgs)Control.OnRegionChanged(EventArgs)Control.OnPreviewKeyDown(PreviewKeyDownEventArgs)Control.OnSizeChanged(EventArgs)Control.OnChangeUICues(UICuesEventArgs)Control.OnStyleChanged(EventArgs)Control.OnSystemColorsChanged(EventArgs)Control.OnValidating(CancelEventArgs)Control.OnValidated(EventArgs)Control.RescaleConstantsForDpi(int, int)Control.PerformLayout()Control.PerformLayout(Control, string)Control.PointToClient(Point)Control.PointToScreen(Point)Control.PreProcessMessage(ref Message)Control.PreProcessControlMessage(ref Message)Control.ProcessKeyEventArgs(ref Message)Control.ProcessKeyMessage(ref Message)Control.ProcessKeyPreview(ref Message)Control.RaiseDragEvent(object, DragEventArgs)Control.RaisePaintEvent(object, PaintEventArgs)Control.RecreateHandle()Control.RectangleToClient(Rectangle)Control.RectangleToScreen(Rectangle)Control.ReflectMessage(IntPtr, ref Message)Control.Refresh()Control.ResetMouseEventArgs()Control.ResetText()Control.ResumeLayout()Control.ResumeLayout(bool)Control.Scale(SizeF)Control.Select()Control.SelectNextControl(Control, bool, bool, bool, bool)Control.SendToBack()Control.SetBounds(int, int, int, int)Control.SetBounds(int, int, int, int, BoundsSpecified)Control.SetBoundsCore(int, int, int, int, BoundsSpecified)Control.SetClientSizeCore(int, int)Control.SizeFromClientSize(Size)Control.SetStyle(ControlStyles, bool)Control.SetTopLevel(bool)Control.SetVisibleCore(bool)Control.RtlTranslateAlignment(HorizontalAlignment)Control.RtlTranslateAlignment(LeftRightAlignment)Control.RtlTranslateAlignment(ContentAlignment)Control.RtlTranslateHorizontal(HorizontalAlignment)Control.RtlTranslateLeftRight(LeftRightAlignment)Control.RtlTranslateContent(ContentAlignment)Control.Show()Control.SuspendLayout()Control.Update()Control.UpdateBounds()Control.UpdateBounds(int, int, int, int)Control.UpdateBounds(int, int, int, int, int, int)Control.UpdateZOrder()Control.UpdateStyles()Control.OnImeModeChanged(EventArgs)Control.AccessibilityObjectControl.AccessibleDefaultActionDescriptionControl.AccessibleDescriptionControl.AccessibleNameControl.AccessibleRoleControl.AllowDropControl.AnchorControl.AutoScrollOffsetControl.LayoutEngineControl.BackColorControl.BackgroundImageControl.BackgroundImageLayoutControl.BottomControl.BoundsControl.CanFocusControl.CanRaiseEventsControl.CanSelectControl.CaptureControl.CausesValidationControl.CheckForIllegalCrossThreadCallsControl.ClientRectangleControl.ClientSizeControl.CompanyNameControl.ContainsFocusControl.ContextMenuControl.ContextMenuStripControl.ControlsControl.CreatedControl.CursorControl.DataBindingsControl.DefaultBackColorControl.DefaultCursorControl.DefaultFontControl.DefaultForeColorControl.DefaultMarginControl.DefaultMaximumSizeControl.DefaultMinimumSizeControl.DefaultPaddingControl.DeviceDpiControl.IsDisposedControl.DisposingControl.DockControl.DoubleBufferedControl.EnabledControl.FocusedControl.FontControl.FontHeightControl.ForeColorControl.HandleControl.HasChildrenControl.HeightControl.IsHandleCreatedControl.InvokeRequiredControl.IsAccessibleControl.IsMirroredControl.LeftControl.LocationControl.MarginControl.MaximumSizeControl.MinimumSizeControl.ModifierKeysControl.MouseButtonsControl.MousePositionControl.NameControl.ParentControl.ProductNameControl.ProductVersionControl.RecreatingHandleControl.RegionControl.RenderRightToLeftControl.ResizeRedrawControl.RightControl.RightToLeftControl.ScaleChildrenControl.SiteControl.SizeControl.TabIndexControl.TabStopControl.TagControl.TextControl.TopControl.TopLevelControlControl.ShowKeyboardCuesControl.ShowFocusCuesControl.UseWaitCursorControl.VisibleControl.WidthControl.PreferredSizeControl.PaddingControl.DefaultImeModeControl.ImeModeControl.ImeModeBaseControl.PropagatingImeModeControl.BackColorChangedControl.BackgroundImageChangedControl.BackgroundImageLayoutChangedControl.BindingContextChangedControl.CausesValidationChangedControl.ClientSizeChangedControl.ContextMenuChangedControl.ContextMenuStripChangedControl.CursorChangedControl.DockChangedControl.EnabledChangedControl.FontChangedControl.ForeColorChangedControl.LocationChangedControl.MarginChangedControl.RegionChangedControl.RightToLeftChangedControl.SizeChangedControl.TabIndexChangedControl.TabStopChangedControl.TextChangedControl.VisibleChangedControl.ClickControl.ControlAddedControl.ControlRemovedControl.DragDropControl.DragEnterControl.DragOverControl.DragLeaveControl.GiveFeedbackControl.HandleCreatedControl.HandleDestroyedControl.HelpRequestedControl.InvalidatedControl.PaddingChangedControl.PaintControl.QueryContinueDragControl.QueryAccessibilityHelpControl.DoubleClickControl.EnterControl.GotFocusControl.KeyDownControl.KeyPressControl.KeyUpControl.LayoutControl.LeaveControl.LostFocusControl.MouseClickControl.MouseDoubleClickControl.MouseCaptureChangedControl.MouseDownControl.MouseEnterControl.MouseLeaveControl.DpiChangedBeforeParentControl.DpiChangedAfterParentControl.MouseHoverControl.MouseMoveControl.MouseUpControl.MouseWheelControl.MoveControl.PreviewKeyDownControl.ResizeControl.ChangeUICuesControl.StyleChangedControl.SystemColorsChangedControl.ValidatingControl.ValidatedControl.ParentChangedControl.ImeModeChangedComponent.Dispose()Component.GetService(Type)Component.ToString()Component.EventsComponent.ContainerComponent.DesignModeComponent.DisposedMarshalByRefObject.MemberwiseClone(bool)MarshalByRefObject.GetLifetimeService()MarshalByRefObject.InitializeLifetimeService()MarshalByRefObject.CreateObjRef(Type)

Constructors

RadColorSelector()

Declaration

cs-api-definition
public RadColorSelector()

Properties

ActiveMode

Sets or gets the active mode of the RadColorPicker

Declaration

cs-api-definition
public ColorPickerActiveMode ActiveMode { get; set; }

Property Value

ColorPickerActiveMode

Implements IColorSelector.ActiveMode

AddNewColorButtonText

Gets or sets the text of the add new color button

Declaration

cs-api-definition
public string AddNewColorButtonText { get; set; }

Property Value

string

AllowColorPickFromScreen

Gets or sets the value indicating whether the user can pick a color from the screen

Declaration

cs-api-definition
public bool AllowColorPickFromScreen { get; set; }

Property Value

bool

Implements IColorSelector.AllowColorPickFromScreen

AllowColorSaving

Gets or sets the value indicating whether the user can save colors

Declaration

cs-api-definition
public bool AllowColorSaving { get; set; }

Property Value

bool

Implements IColorSelector.AllowColorSaving

AllowEditHEXValue

Gets or sets the value indicating whether the user can edit the hexadecimal color value

Declaration

cs-api-definition
public bool AllowEditHEXValue { get; set; }

Property Value

bool

Implements IColorSelector.AllowEditHEXValue

BasicTabHeading

Gets or sets the heading of the basic colors tab

Declaration

cs-api-definition
public string BasicTabHeading { get; set; }

Property Value

string

Implements IColorSelector.BasicTabHeading

ControlsHolderPageView

Declaration

cs-api-definition
public RadPageView ControlsHolderPageView { get; }

Property Value

RadPageView

CustomColors

Gets the list of custom colors

Declaration

cs-api-definition
public Color[] CustomColors { get; }

Property Value

Color[]

Implements IColorSelector.CustomColors

OldColor

Gets or sets the old color

Declaration

cs-api-definition
public Color OldColor { get; set; }

Property Value

Color

Implements IColorSelector.OldColor

OldColorLabelHeading

Gets or sets the heading of the old color label

Declaration

cs-api-definition
public string OldColorLabelHeading { get; set; }

Property Value

string

Implements IColorSelector.OldColorLabelHeading

ProfessionalTabHeading

Gets or sets the heading of the professional colors tab

Declaration

cs-api-definition
public string ProfessionalTabHeading { get; set; }

Property Value

string

Implements IColorSelector.ProfessionalTabHeading

SaveCustomColors

Gets or sets a value indicating whether custom colors should be save upon exiting the color picker.

Declaration

cs-api-definition
public bool SaveCustomColors { get; set; }

Property Value

bool

SelectedColor

Gets or sets the selected color

Declaration

cs-api-definition
public Color SelectedColor { get; set; }

Property Value

Color

Implements IColorSelector.SelectedColor

SelectedColorLabelHeading

Gets or sets the heading of the new color label

Declaration

cs-api-definition
public string SelectedColorLabelHeading { get; set; }

Property Value

string

Implements IColorSelector.SelectedColorLabelHeading

SelectedHslColor

Gets or sets the selected HSL color

Declaration

cs-api-definition
public HslColor SelectedHslColor { get; set; }

Property Value

HslColor

Implements IColorSelector.SelectedHslColor

SelectedRgbColor

Gets or sets the selected color

Declaration

cs-api-definition
public Color SelectedRgbColor { get; set; }

Property Value

Color

ShowBasicColors

Shows or hides the basic colors tab

Declaration

cs-api-definition
public bool ShowBasicColors { get; set; }

Property Value

bool

Implements IColorSelector.ShowBasicColors

ShowCustomColors

Shows or hides the system colors tab

Declaration

cs-api-definition
public bool ShowCustomColors { get; set; }

Property Value

bool

Implements IColorSelector.ShowCustomColors

ShowHEXColorValue

Shows or hides the hex color textbox

Declaration

cs-api-definition
public bool ShowHEXColorValue { get; set; }

Property Value

bool

Implements IColorSelector.ShowHEXColorValue

ShowProfessionalColors

Shows or hides the professional colors tab

Declaration

cs-api-definition
public bool ShowProfessionalColors { get; set; }

Property Value

bool

Implements IColorSelector.ShowProfessionalColors

ShowSystemColors

Shows or hides the system colors tab

Declaration

cs-api-definition
public bool ShowSystemColors { get; set; }

Property Value

bool

Implements IColorSelector.ShowSystemColors

ShowWebColors

Shows or hides the web colors tab

Declaration

cs-api-definition
public bool ShowWebColors { get; set; }

Property Value

bool

Implements IColorSelector.ShowWebColors

SystemTabHeading

Gets or sets the heading of the system colors tab

Declaration

cs-api-definition
public string SystemTabHeading { get; set; }

Property Value

string

Implements IColorSelector.SystemTabHeading

WebTabHeading

Gets or sets the heading of the web colors tab

Declaration

cs-api-definition
public string WebTabHeading { get; set; }

Property Value

string

Implements IColorSelector.WebTabHeading

Methods

Dispose(bool)

Clean up any resources being used.

Declaration

cs-api-definition
protected override void Dispose(bool disposing)

Parameters

disposing

bool

true if managed resources should be disposed; otherwise, false.

Overrides ContainerControl.Dispose(bool)

OnRightToLeftChanged(EventArgs)

Declaration

cs-api-definition
protected override void OnRightToLeftChanged(EventArgs e)

Parameters

e

EventArgs

Overrides ScrollableControl.OnRightToLeftChanged(EventArgs)

ProcessCmdKey(ref Message, Keys)

Declaration

cs-api-definition
protected override bool ProcessCmdKey(ref Message msg, Keys keyData)

Parameters

msg

Message

keyData

Keys

Returns

bool

Overrides ContainerControl.ProcessCmdKey(ref Message, Keys)

Events

CancelButtonClicked

Fires when the Cancel button is clicked

Declaration

cs-api-definition
public event ColorChangedEventHandler CancelButtonClicked

Event Value

ColorChangedEventHandler

Implements IColorSelector.CancelButtonClicked

ColorChanged

Fires when the selected color changes

Declaration

cs-api-definition
public event ColorChangedEventHandler ColorChanged

Event Value

ColorChangedEventHandler

CustomColorsConfigLocationNeeded

Fires when custom colors configuration is about to be saved or loaded. Can be used to change the default location of the configuration file.

Declaration

cs-api-definition
public event CustomColorsEventHandler CustomColorsConfigLocationNeeded

Event Value

CustomColorsEventHandler

OkButtonClicked

Fires when the OK button is clicked

Declaration

cs-api-definition
public event ColorChangedEventHandler OkButtonClicked

Event Value

ColorChangedEventHandler

Implements IColorSelector.OkButtonClicked