About Progress

  • Company
    • Company Overview
    • Leadership
    • Corporate Social Responsibility
    • Investor Relations
    • Press Releases
    • Press Coverage
    • Recognitions
    • Progress Labs
    • Events
    • Customers
    • Careers
    • Offices
  • Technology
    • Cloud Native App Dev Platform
    • Cognitive Services
    • Web Content Management
    • UI/UX Tools
    • Secure Data Connectivity and Integration
    • Secure Managed File Transfer
    • OpenEdge
    • Network Monitoring
  • Services
    • Consulting
    • Education
    • Modernization
    • Outsourcing
  • Product Bundles

    DevCraft

    All Telerik .NET tools and Kendo UI JavaScript components in one package. Now enhanced with:

    • Conversational UI
    • Online Training
    • Document Processing Library
    Web
    Kendo UI UI for jQuery UI for Angular UI for React UI for Vue UI for ASP.NET AJAX UI for ASP.NET MVC UI for ASP.NET Core UI for Blazor UI for Silverlight UI for PHP UI for JSP
    Mobile
    UI for Xamarin NativeScript OSS framework
    Desktop
    UI for WPF UI for UWP UI for WinForms
    Reporting & Mocking
    Telerik Reporting Telerik Report Server Telerik JustMock
    Automated Testing
    Test Studio Test Studio Dev Edition
    Debugging
    FiddlerCore
    CMS
    Sitefinity
    UX Design
    Unite UX
    Document Management
    Telerik Document Processing
    Innovations Lab
    VR DataViz
    Free Tools
    Fiddler JustAssembly JustDecompile VB.NET to C# Converter Testing Framework
    View all products
  • Overview
  • Demos
    • What's New
    • Roadmap
    • Release History
  • Docs & Support
  • Pricing
  • Search
  • Shopping cart
    • Account Overview
    • Edit Profile
    • Payment Profiles
    • Renewals & Upgrades
    • Support Tickets
    • Log out
  • Login
  • Contact Us
  • Try now

Class RadControl

Represents a RadControl. RadControl is an abstract class and is base class for all Telerik controls.

Inheritance
System.Object
RadControl
MeasurementControl
RadEditorControl
RadItemsControl
RadNCEnabledControl
RadScreenTip
ColumnChooserControl
DockingGuidesControl
QuickNavigator
EditorBaseControl
RadLinearGauge
RadRadialGauge
LayoutControlDraggableOverlay
RadBarcode
RadBindingNavigator
RadButtonBase
RadCalendar
RadCalendarFastNavigationControl
RadCarousel
RadChartView
RadChat
RadClock
RadCollapsiblePanel
TransparentColorBox
RadCommandBar
RadCommandBarOverflowPanelHostContol
RadDiagram
RadDropDownButton
RadGanttView
RadGridView
RadGroupBox
RadImageEditor
RadLabel
RadListControl
RadListView
RadMap
RadPanel
RadPanorama
RadPdfViewer
RadPivotGrid
RadPopupControlBase
RadProgressBar
RadPropertyGrid
RadRangeSelector
RadRating
RadRibbonBar
RadRibbonBarBackstageView
RadRichTextEditor
RadRichTextEditorRuler
RadRotator
RadScheduler
RadSchedulerNavigator
RadScrollablePanel
RadScrollBar
RadSeparator
RadSparkline
RadSplitter
RadSpreadsheet
RadStatusStrip
RadSyntaxEditor
RadTextBoxControl
RadTimePickerContent
RadTitleBar
RadToggleSwitch
RadTreeView
RadVirtualGrid
RadVirtualKeyboard
RadWaitingBar
RadWebCam
RadWizard
SplitPanel
TimePickerDoneButtonContent
WatermarkPreviewControl
ZoomPopup
BorderPreviewControl
FillControl
Namespace: Telerik.WinControls
Assembly: Telerik.WinControls.dll

Syntax

public class RadControl : ScrollableControl, INotifyPropertyChanged, ISupportInitializeNotification, ISupportInitialize, IComponentTreeHandler, ILayoutHandler, IPCHost, IAnalyticsProvider

Constructors

RadControl()

Declaration
public RadControl()

Fields

invalidResizeRect

Declaration
protected Rectangle invalidResizeRect
Field Value
System.Drawing.Rectangle

isAccessibilityRequested

Declaration
protected bool isAccessibilityRequested
Field Value
System.Boolean

isDisposing2

Declaration
protected bool isDisposing2
Field Value
System.Boolean

isResizing2

Declaration
protected bool isResizing2
Field Value
System.Boolean

RefCount

Declaration
public static int RefCount
Field Value
System.Int32

Properties

AccessibilityRequested

Gets or sets a value indicating whether the CodedUI Tests functionality is requested from external program such a Narrator.

Declaration
public virtual bool AccessibilityRequested { get; set; }
Property Value
System.Boolean

AllowShowFocusCues

Indicates focus cues display, when available, based on the corresponding control type and the current UI state.

Declaration
public virtual bool AllowShowFocusCues { get; set; }
Property Value
System.Boolean

AnalyticsName

Gets or sets the Analytics Name associated with this control. By default the Control Name property is logged. If you want to customize the information which will be logged for this control set this property to a preferred value.

Declaration
public virtual string AnalyticsName { get; set; }
Property Value
System.String

Implements
IAnalyticsProvider.AnalyticsName

AutoSize

Gets or sets a value indicating whether the control is automatically resized to display its entire contents.

Declaration
public override bool AutoSize { get; set; }
Property Value
System.Boolean

BackColor

Gets or sets the BackColor of the control. This is actually the BackColor property of the root element.

Declaration
public override Color BackColor { get; set; }
Property Value
System.Drawing.Color

Behavior

Gets the input behavior for the control.

Declaration
public ComponentInputBehavior Behavior { get; }
Property Value
ComponentInputBehavior

CausesValidation

Gets or sets a value indicating whether the control causes validation to be performed on any controls that require validation when it receives focus.

Declaration
public bool CausesValidation { get; set; }
Property Value
System.Boolean

CommandBindings

Declaration
public InputBindingsCollection CommandBindings { get; }
Property Value
InputBindingsCollection

ElementTree

Declaration
public virtual ComponentThemableElementTree ElementTree { get; }
Property Value
ComponentThemableElementTree

EnableAnalytics

Gets or sets a value indicating whether the Analytics functionality is enabled or disabled for this control.

Declaration
public virtual bool EnableAnalytics { get; set; }
Property Value
System.Boolean

Implements
IAnalyticsProvider.EnableAnalytics

EnableCodedUITests

Gets or sets a value indicating whether the CodedUI Tests functionality is enabled.

Declaration
public virtual bool EnableCodedUITests { get; set; }
Property Value
System.Boolean

EnableCodedUITestsDefaultValue

Gets or sets the default value for EnableCodedUITests property.

Declaration
public static bool EnableCodedUITestsDefaultValue { get; set; }
Property Value
System.Boolean

EnableDpiScaling

Gets or sets a value indicating whether the RadControls scaling logic will be used when the application is run in a high DPI environment.

Declaration
public static bool EnableDpiScaling { get; set; }
Property Value
System.Boolean

EnableGestures

Gets or sets a value indicating whether the Gestures functionality is enabled.

Declaration
public virtual bool EnableGestures { get; set; }
Property Value
System.Boolean

EnableImageDpiScaling

Gets or sets a value indicating whether the RadControls scaling logic will be used to resize the images when the application is run in a high DPI environment.

Declaration
public static bool EnableImageDpiScaling { get; set; }
Property Value
System.Boolean

EnableKeyMap

Gets or sets whether Key Map (Office 2007 like accelerator keys map) is used for this specific control. Currently this option is implemented for the RadRibbonBar control only.

Declaration
public bool EnableKeyMap { get; set; }
Property Value
System.Boolean

EnableRadAccessibilityObjects

Gets or sets a value indicating whether the RadControls Accessible custom object is enabled.

Declaration
public virtual bool EnableRadAccessibilityObjects { get; set; }
Property Value
System.Boolean

EnableTheming

Gets or sets value indicating whether the control is styled through theme

Declaration
public bool EnableTheming { get; set; }
Property Value
System.Boolean

Focusable

Declaration
public virtual bool Focusable { get; set; }
Property Value
System.Boolean

FocusedElement

Declaration
public RadElement FocusedElement { get; set; }
Property Value
RadElement

Font

Gets or sets the Font of the control. This is actually the Font property of the root element.

Declaration
public override Font Font { get; set; }
Property Value
System.Drawing.Font

ForeColor

Gets or sets the ForeColor of the control. This is actually the ForeColor property of the root element.

Declaration
public override Color ForeColor { get; set; }
Property Value
System.Drawing.Color

ImageList

Gets or sets the ImageList that contains the images displayed by this control.

Declaration
public virtual ImageList ImageList { get; set; }
Property Value
System.Windows.Forms.ImageList

Implements
IComponentTreeHandler.ImageList

ImageScalingSize

Gets or sets the image scaling size.

Declaration
public Size ImageScalingSize { get; set; }
Property Value
System.Drawing.Size

Implements
IComponentTreeHandler.ImageScalingSize

IsDesignMode

Declaration
public bool IsDesignMode { get; }
Property Value
System.Boolean

IsDisplayed

Determines whether the control is currently displayed on the screen.

Declaration
public bool IsDisplayed { get; }
Property Value
System.Boolean

IsInitializing

Declaration
public bool IsInitializing { get; }
Property Value
System.Boolean

IsLoaded

Determines whether the control is properly loaded.

Declaration
public bool IsLoaded { get; }
Property Value
System.Boolean

IsTrial

Declaration
public static bool IsTrial { get; }
Property Value
System.Boolean

LayoutManager

Declaration
public ILayoutManager LayoutManager { get; }
Property Value
ILayoutManager

Implements
ILayoutHandler.LayoutManager

MaximumSize

Gets or sets the size that is the upper limit that GetPreferredSize can specify.

Declaration
public override Size MaximumSize { get; set; }
Property Value
System.Drawing.Size

MinimumSize

Gets or sets the size that is the lower limit that GetPreferredSize can specify

Declaration
public override Size MinimumSize { get; set; }
Property Value
System.Drawing.Size

Padding

Gets or sets padding within the control.

Declaration
public Padding Padding { get; set; }
Property Value
System.Windows.Forms.Padding

A System.Windows.Forms.Padding representing the control's internal spacing characteristics.

RootElement

Gets the RootElement of the control.

Declaration
public RootRadElement RootElement { get; }
Property Value
RootRadElement

Implements
IComponentTreeHandler.RootElement

ShowItemToolTips

Gets or sets a value indicating whether ToolTips are shown for the RadItem objects contained in the RadControl.

Declaration
public virtual bool ShowItemToolTips { get; set; }
Property Value
System.Boolean

Site

Declaration
public override ISite Site { get; set; }
Property Value
System.ComponentModel.ISite

SmallImageList

Gets or sets the SmallImageList that contains the small images which are displayed when there's not enough space.

Declaration
public virtual ImageList SmallImageList { get; set; }
Property Value
System.Windows.Forms.ImageList

Implements
IComponentTreeHandler.SmallImageList

SmallImageScalingSize

Gets or sets the small image scaling size.

Declaration
public Size SmallImageScalingSize { get; set; }
Property Value
System.Drawing.Size

Implements
IComponentTreeHandler.SmallImageScalingSize

Text

Declaration
public override string Text { get; set; }
Property Value
System.String

ThemeClassName

Gets or sets the class name string that ThemeResolutionService will use to find the themes registered for the control.

Declaration
public virtual string ThemeClassName { get; set; }
Property Value
System.String

Remarks

By default the return value is RadControl's type FullName; Some controls like drop down menu has different ThemeClassName depending on the runtime usage of the control.

ThemeName

Gets or sets control's preferred theme name. Themes are stored and retrieved using APIs of ThemeResolutionService.

Declaration
public virtual string ThemeName { get; set; }
Property Value
System.String

Implements
IComponentTreeHandler.ThemeName
Remarks

If ThemeResolutionService.ApplicatonThemeName refers to a non-empty string, the theme of a RadControl can differ from the one set using RadControls.ThemeName property. If the themes differ, the RadControls.ThemeName property will be overridden by ThemeResolutionService.ApplicatonThemeName. If no theme is registered with a name as ThemeResolutionService.ApplicatonThemeName, then control will revert to the theme specified by its ThemeName property. If ThemeName is assigned to a non-existing theme name, the control may have no visual properties assigned, which will cause it look and behave in unexpected manner. If ThemeName equals empty string, control's theme is set to a theme that is registered within ThemeResolutionService with the name "ControlDefault".

UseCompatibleTextRendering

Determines whether to use compatible text rendering engine (GDI+) or not (GDI).

Declaration
public virtual bool UseCompatibleTextRendering { get; set; }
Property Value
System.Boolean

UseCompatibleTextRenderingDefaultValue

Set or get the default value for UseCompatibleTextRendering property.

Declaration
public static bool UseCompatibleTextRenderingDefaultValue { get; set; }
Property Value
System.Boolean

ValidationCancel

Declaration
protected bool ValidationCancel { get; }
Property Value
System.Boolean

Methods

BeginInit()

Suspends layout during initialization.

Declaration
public virtual void BeginInit()

CallAccessibilityNotifyClients(AccessibleEvents, Int32)

This method is used internally!

Declaration
public void CallAccessibilityNotifyClients(AccessibleEvents accEvent, int childId)
Parameters
System.Windows.Forms.AccessibleEvents accEvent

System.Int32 childId

CallBaseOnGotFocus(EventArgs)

This method is used internally!

Declaration
public void CallBaseOnGotFocus(EventArgs e)
Parameters
System.EventArgs e

CallBaseOnKeyDown(KeyEventArgs)

This method is used internally!

Declaration
public void CallBaseOnKeyDown(KeyEventArgs e)
Parameters
System.Windows.Forms.KeyEventArgs e

CallBaseOnKeyPress(KeyPressEventArgs)

This method is used internally!

Declaration
public void CallBaseOnKeyPress(KeyPressEventArgs e)
Parameters
System.Windows.Forms.KeyPressEventArgs e

CallBaseOnKeyUp(KeyEventArgs)

This method is used internally!

Declaration
public void CallBaseOnKeyUp(KeyEventArgs e)
Parameters
System.Windows.Forms.KeyEventArgs e

CallBaseOnLostFocus(EventArgs)

This method is used internally!

Declaration
public void CallBaseOnLostFocus(EventArgs e)
Parameters
System.EventArgs e

CallOnClick(EventArgs)

This method is used internally!

Declaration
public void CallOnClick(EventArgs e)
Parameters
System.EventArgs e

CallOnDoubleClick(EventArgs)

This method is used internally!

Declaration
public void CallOnDoubleClick(EventArgs e)
Parameters
System.EventArgs e

CallOnKeyDown(KeyEventArgs)

This method is used internally!

Declaration
public void CallOnKeyDown(KeyEventArgs e)
Parameters
System.Windows.Forms.KeyEventArgs e

CallOnKeyPress(KeyPressEventArgs)

This method is used internally!

Declaration
public void CallOnKeyPress(KeyPressEventArgs e)
Parameters
System.Windows.Forms.KeyPressEventArgs e

CallOnKeyUp(KeyEventArgs)

This method is used internally!

Declaration
public void CallOnKeyUp(KeyEventArgs e)
Parameters
System.Windows.Forms.KeyEventArgs e

CallOnMouseCaptureChanged(EventArgs)

This method is used internally!

Declaration
public void CallOnMouseCaptureChanged(EventArgs e)
Parameters
System.EventArgs e

CallOnMouseDown(MouseEventArgs)

This method is used internally!

Declaration
public void CallOnMouseDown(MouseEventArgs e)
Parameters
System.Windows.Forms.MouseEventArgs e

CallOnMouseEnter(EventArgs)

This method is used internally!

Declaration
public void CallOnMouseEnter(EventArgs e)
Parameters
System.EventArgs e

CallOnMouseHover(EventArgs)

This method is used internally!

Declaration
public void CallOnMouseHover(EventArgs e)
Parameters
System.EventArgs e

CallOnMouseLeave(EventArgs)

This method is used internally!

Declaration
public void CallOnMouseLeave(EventArgs e)
Parameters
System.EventArgs e

CallOnMouseMove(MouseEventArgs)

This method is used internally!

Declaration
public void CallOnMouseMove(MouseEventArgs e)
Parameters
System.Windows.Forms.MouseEventArgs e

CallOnMouseUp(MouseEventArgs)

This method is used internally!

Declaration
public void CallOnMouseUp(MouseEventArgs e)
Parameters
System.Windows.Forms.MouseEventArgs e

CallOnMouseWheel(MouseEventArgs)

This method is used internally!

Declaration
public void CallOnMouseWheel(MouseEventArgs e)
Parameters
System.Windows.Forms.MouseEventArgs e

CallOnPreviewKeyDown(PreviewKeyDownEventArgs)

This method is used internally!

Declaration
public void CallOnPreviewKeyDown(PreviewKeyDownEventArgs e)
Parameters
System.Windows.Forms.PreviewKeyDownEventArgs e

CallOnScreenTipNeeded(Object, ScreenTipNeededEventArgs)

This method is used internally!

Declaration
public void CallOnScreenTipNeeded(object sender, ScreenTipNeededEventArgs e)
Parameters
System.Object sender

ScreenTipNeededEventArgs e

CallOnThemeNameChanged(ThemeNameChangedEventArgs)

This method is used internally!

Declaration
public void CallOnThemeNameChanged(ThemeNameChangedEventArgs e)
Parameters
ThemeNameChangedEventArgs e

CallOnToolTipTextNeeded(Object, ToolTipTextNeededEventArgs)

This method is used internally!

Declaration
public void CallOnToolTipTextNeeded(object sender, ToolTipTextNeededEventArgs e)
Parameters
System.Object sender

ToolTipTextNeededEventArgs e

CallOnVisibleChanged(EventArgs)

This method is used internally!

Declaration
public void CallOnVisibleChanged(EventArgs e)
Parameters
System.EventArgs e

CanEditElementAtDesignTime(RadElement)

Determines whether an element may be edited via the EditUIElements dialog at design-time.

Declaration
protected virtual bool CanEditElementAtDesignTime(RadElement element)
Parameters
RadElement element

Returns
System.Boolean

CanEditUIElement(RadElement)

Determines whether an element from this element tree may be displayed in the EditUIElements dialog.

Declaration
public bool CanEditUIElement(RadElement element)
Parameters
RadElement element

Returns
System.Boolean

Construct()

Declaration
protected virtual void Construct()

ControlDefinesThemeForElement(RadElement)

Checks whether the element's theme is defined by the control.

Declaration
public virtual bool ControlDefinesThemeForElement(RadElement element)
Parameters
RadElement element

The element to should be checked.

Returns
System.Boolean

true if the control defines theme for this element, false otherwise.

Implements
IComponentTreeHandler.ControlDefinesThemeForElement(RadElement)
Remarks

If true is returned the ThemeResolutionService would not not set any theme to the element to avoid duplicating the style settings of the element.

CreateBehavior()

Creates the input behavior instance. Allows inheritors to provide custom input implementations.

Declaration
protected virtual ComponentInputBehavior CreateBehavior()
Returns
ComponentInputBehavior

CreateChildItems(RadElement)

Declaration
protected virtual void CreateChildItems(RadElement parent)
Parameters
RadElement parent

CreateRootElement()

Declaration
protected virtual RootRadElement CreateRootElement()
Returns
RootRadElement

DisableGesture(GestureType)

Disable firing gesture events of the specified type.

Declaration
public void DisableGesture(GestureType type)
Parameters
GestureType type

The type of gesture events to disable.

Dispose(Boolean)

Declaration
protected override void Dispose(bool disposing)
Parameters
System.Boolean disposing

EnableGesture(GestureType)

Enable firing gesture events of the specified type.

Declaration
public void EnableGesture(GestureType type)
Parameters
GestureType type

The type of gesture events to enable.

EndInit()

Resumes layout.

Declaration
public virtual void EndInit()

FindPropertyInChildren(RadControl, IPCMessage)

Declaration
protected virtual bool FindPropertyInChildren(RadControl radControl, IPCMessage request)
Parameters
RadControl radControl

IPCMessage request

Returns
System.Boolean

GetChildAt(Int32)

Method used by control Code Dom serializer to access element in the collection of RootElement.

Declaration
public RadElement GetChildAt(int index)
Parameters
System.Int32 index

Returns
RadElement

GetControlDefaultSize()

This method is used internally!

Declaration
public Size GetControlDefaultSize()
Returns
System.Drawing.Size

The default size for this control

GetDpiScaledSize(Size)

Declaration
public static Size GetDpiScaledSize(Size dpi96Size)
Parameters
System.Drawing.Size dpi96Size

Returns
System.Drawing.Size

GetDpiScaledSize(SizeF)

Declaration
public static SizeF GetDpiScaledSize(SizeF dpi96Size)
Parameters
System.Drawing.SizeF dpi96Size

Returns
System.Drawing.SizeF

GetInputElement()

Declaration
protected virtual RadElement GetInputElement()
Returns
RadElement

GetPlainText()

Strips all html tags of the text set to the control and returns only the plain text.

Declaration
public string GetPlainText()
Returns
System.String

Plain text stripped of any html tags.

GetPreferredSize(Size)

Declaration
public override Size GetPreferredSize(Size proposedSize)
Parameters
System.Drawing.Size proposedSize

Returns
System.Drawing.Size

GetRootElementDesiredSize(Int32, Int32, Int32, Int32)

Declaration
protected virtual Size GetRootElementDesiredSize(int x, int y, int width, int height)
Parameters
System.Int32 x

System.Int32 y

System.Int32 width

System.Int32 height

Returns
System.Drawing.Size

InitializeRootElement(RootRadElement)

Declaration
protected virtual void InitializeRootElement(RootRadElement rootElement)
Parameters
RootRadElement rootElement

InvokeLayoutCallback(LayoutCallback)

Declaration
public void InvokeLayoutCallback(LayoutCallback callback)
Parameters
LayoutCallback callback

Implements
ILayoutHandler.InvokeLayoutCallback(LayoutCallback)

IsInputKey(Keys)

Declaration
protected override bool IsInputKey(Keys keyData)
Parameters
System.Windows.Forms.Keys keyData

Returns
System.Boolean

LoadElementTree()

Loads the element tree. While not loaded, no layout operations are allowed upon the tree. By default, the tree will be loaded when the control is displayed for the first time.

Declaration
public virtual void LoadElementTree()
Implements
IComponentTreeHandler.LoadElementTree()

LoadElementTree(Size)

Loads the element tree using the specified desired size.

Declaration
public virtual void LoadElementTree(Size desiredSize)
Parameters
System.Drawing.Size desiredSize

Implements
IComponentTreeHandler.LoadElementTree(Size)

OnAutoSizeChanged(EventArgs)

Declaration
protected override void OnAutoSizeChanged(EventArgs e)
Parameters
System.EventArgs e

OnBackColorChanged(EventArgs)

Declaration
protected override void OnBackColorChanged(EventArgs e)
Parameters
System.EventArgs e

OnBindingContextChanged(EventArgs)

Declaration
protected override void OnBindingContextChanged(EventArgs e)
Parameters
System.EventArgs e

OnCaptureLosing()

Declaration
protected virtual void OnCaptureLosing()

OnClick(EventArgs)

Declaration
protected override void OnClick(EventArgs e)
Parameters
System.EventArgs e

OnCreateControl()

Declaration
protected override void OnCreateControl()

OnDoubleClick(EventArgs)

Declaration
protected override void OnDoubleClick(EventArgs e)
Parameters
System.EventArgs e

OnEnabledChanged(EventArgs)

Declaration
protected override void OnEnabledChanged(EventArgs e)
Parameters
System.EventArgs e

OnFontChanged(EventArgs)

Declaration
protected override void OnFontChanged(EventArgs e)
Parameters
System.EventArgs e

OnForeColorChanged(EventArgs)

Declaration
protected override void OnForeColorChanged(EventArgs e)
Parameters
System.EventArgs e

OnGesture(GestureEventArgs)

Declaration
protected virtual void OnGesture(GestureEventArgs args)
Parameters
GestureEventArgs args

OnGotFocus(EventArgs)

Declaration
protected override void OnGotFocus(EventArgs e)
Parameters
System.EventArgs e

OnHandleDestroyed(EventArgs)

Declaration
protected override void OnHandleDestroyed(EventArgs e)
Parameters
System.EventArgs e

OnInvalidated(RadElement)

Declaration
protected virtual void OnInvalidated(RadElement element)
Parameters
RadElement element

OnKeyDown(KeyEventArgs)

Declaration
protected override void OnKeyDown(KeyEventArgs e)
Parameters
System.Windows.Forms.KeyEventArgs e

OnKeyPress(KeyPressEventArgs)

Declaration
protected override void OnKeyPress(KeyPressEventArgs e)
Parameters
System.Windows.Forms.KeyPressEventArgs e

OnKeyUp(KeyEventArgs)

Declaration
protected override void OnKeyUp(KeyEventArgs e)
Parameters
System.Windows.Forms.KeyEventArgs e

OnLayout(LayoutEventArgs)

Declaration
protected override void OnLayout(LayoutEventArgs e)
Parameters
System.Windows.Forms.LayoutEventArgs e

OnLoad(Size)

Notifies that the control is about to be visualized.

Declaration
protected virtual void OnLoad(Size desiredSize)
Parameters
System.Drawing.Size desiredSize

OnLocationChanged(EventArgs)

Declaration
protected override void OnLocationChanged(EventArgs e)
Parameters
System.EventArgs e

OnLostFocus(EventArgs)

Declaration
protected override void OnLostFocus(EventArgs e)
Parameters
System.EventArgs e

OnMouseCaptureChanged(EventArgs)

Declaration
protected override void OnMouseCaptureChanged(EventArgs e)
Parameters
System.EventArgs e

OnMouseDown(MouseEventArgs)

Declaration
protected override void OnMouseDown(MouseEventArgs e)
Parameters
System.Windows.Forms.MouseEventArgs e

OnMouseEnter(EventArgs)

Declaration
protected override void OnMouseEnter(EventArgs e)
Parameters
System.EventArgs e

OnMouseHover(EventArgs)

Declaration
protected override void OnMouseHover(EventArgs e)
Parameters
System.EventArgs e

OnMouseLeave(EventArgs)

Declaration
protected override void OnMouseLeave(EventArgs e)
Parameters
System.EventArgs e

OnMouseMove(MouseEventArgs)

Declaration
protected override void OnMouseMove(MouseEventArgs e)
Parameters
System.Windows.Forms.MouseEventArgs e

OnMouseUp(MouseEventArgs)

Declaration
protected override void OnMouseUp(MouseEventArgs e)
Parameters
System.Windows.Forms.MouseEventArgs e

OnMouseWheel(MouseEventArgs)

Declaration
protected override void OnMouseWheel(MouseEventArgs e)
Parameters
System.Windows.Forms.MouseEventArgs e

OnNotifyPropertyChanged(PropertyChangedEventArgs)

Declaration
protected virtual void OnNotifyPropertyChanged(PropertyChangedEventArgs e)
Parameters
System.ComponentModel.PropertyChangedEventArgs e

OnNotifyPropertyChanged(String)

Raises the PropertyChanged event

Declaration
protected virtual void OnNotifyPropertyChanged(string propertyName)
Parameters
System.String propertyName

The name of the property

OnPaddingChanged(EventArgs)

Declaration
protected override void OnPaddingChanged(EventArgs e)
Parameters
System.EventArgs e

OnPaint(PaintEventArgs)

Declaration
protected override void OnPaint(PaintEventArgs e)
Parameters
System.Windows.Forms.PaintEventArgs e

OnPanGesture(PanGestureEventArgs)

Fires the PanGesture event.

Declaration
protected virtual void OnPanGesture(PanGestureEventArgs args)
Parameters
PanGestureEventArgs args

The arguments for the PanGesture event.

OnParentChanged(EventArgs)

Declaration
protected override void OnParentChanged(EventArgs e)
Parameters
System.EventArgs e

OnPressAndTapGesture(PressAndTapGestureEventArgs)

Fires the PressAndTapGesture event.

Declaration
protected virtual void OnPressAndTapGesture(PressAndTapGestureEventArgs args)
Parameters
PressAndTapGestureEventArgs args

The arguments for the PressAndTapGesture event.

OnPreviewKeyDown(PreviewKeyDownEventArgs)

Declaration
protected override void OnPreviewKeyDown(PreviewKeyDownEventArgs e)
Parameters
System.Windows.Forms.PreviewKeyDownEventArgs e

OnRightToLeftChanged(EventArgs)

Declaration
protected override void OnRightToLeftChanged(EventArgs e)
Parameters
System.EventArgs e

OnRotateGesture(RotateGestureEventArgs)

Fires the RotateGesture event.

Declaration
protected virtual void OnRotateGesture(RotateGestureEventArgs args)
Parameters
RotateGestureEventArgs args

The arguments for the RotateGesture event.

OnScreenTipNeeded(Object, ScreenTipNeededEventArgs)

Declaration
protected virtual void OnScreenTipNeeded(object sender, ScreenTipNeededEventArgs e)
Parameters
System.Object sender

ScreenTipNeededEventArgs e

OnThemeChanged()

Declaration
protected virtual void OnThemeChanged()

OnThemeNameChanged(ThemeNameChangedEventArgs)

Declaration
protected virtual void OnThemeNameChanged(ThemeNameChangedEventArgs e)
Parameters
ThemeNameChangedEventArgs e

OnToolTipTextNeeded(Object, ToolTipTextNeededEventArgs)

Declaration
protected virtual void OnToolTipTextNeeded(object sender, ToolTipTextNeededEventArgs e)
Parameters
System.Object sender

ToolTipTextNeededEventArgs e

OnTwoFingerTapGesture(GestureEventArgs)

Fires the TwoFingerTapGesture event.

Declaration
protected virtual void OnTwoFingerTapGesture(GestureEventArgs args)
Parameters
GestureEventArgs args

The arguments for the TwoFingerTapGesture event.

OnVisibleChanged(EventArgs)

Declaration
protected override void OnVisibleChanged(EventArgs e)
Parameters
System.EventArgs e

OnZoomGesture(ZoomGestureEventArgs)

Fires the ZoomGesture event.

Declaration
protected virtual void OnZoomGesture(ZoomGestureEventArgs args)
Parameters
ZoomGestureEventArgs args

The arguments for the ZoomGesture event.

ProcessAutoSizeChanged(Boolean)

Declaration
protected virtual void ProcessAutoSizeChanged(bool value)
Parameters
System.Boolean value

ProcessCaptureChangeRequested(RadElement, Boolean)

Processes a capture request from the specified element.

Declaration
protected virtual bool ProcessCaptureChangeRequested(RadElement element, bool capture)
Parameters
RadElement element

The element which requested the capture.

System.Boolean capture

Returns
System.Boolean

True if the capture request is approved, otherwise false.

ProcessCodedUIMessage(ref IPCMessage)

Declaration
protected virtual void ProcessCodedUIMessage(ref IPCMessage request)
Parameters
IPCMessage request

ProcessFocusRequested(RadElement)

Processes a focus request from the specified element.

Declaration
protected virtual bool ProcessFocusRequested(RadElement element)
Parameters
RadElement element

The element that requested the focus.

Returns
System.Boolean

True if focus is approved, false otherwise.

ProcessGesture(Message)

Declaration
protected bool ProcessGesture(Message m)
Parameters
System.Windows.Forms.Message m

Returns
System.Boolean

ProcessMnemonic(Char)

Declaration
protected override bool ProcessMnemonic(char charCode)
Parameters
System.Char charCode

Returns
System.Boolean

Refresh()

Declaration
public override void Refresh()

RegisterHostedControl(RadHostItem)

Declaration
public virtual void RegisterHostedControl(RadHostItem hostElement)
Parameters
RadHostItem hostElement

Implements
IComponentTreeHandler.RegisterHostedControl(RadHostItem)

ResetBackColorThemeOverrides()

Declaration
protected virtual void ResetBackColorThemeOverrides()

ResetForeColorThemeOverrides()

Declaration
protected virtual void ResetForeColorThemeOverrides()

ResolveStyleGroupForElement(StyleGroup, RadObject)

Replaces the default style group for specific element.

Declaration
public virtual StyleGroup ResolveStyleGroupForElement(StyleGroup styleGroup, RadObject element)
Parameters
StyleGroup styleGroup

The style group to replace.

RadObject element

The element on which this style should apply.

Returns
StyleGroup

An instance of StyleGroup is successfull.

ResumeUpdate()

Declaration
public void ResumeUpdate()
Implements
IComponentTreeHandler.ResumeUpdate()

ResumeUpdate(Boolean)

Declaration
public void ResumeUpdate(bool invalidate)
Parameters
System.Boolean invalidate

ScaleControl(SizeF, BoundsSpecified)

Declaration
protected override void ScaleControl(SizeF factor, BoundsSpecified specified)
Parameters
System.Drawing.SizeF factor

System.Windows.Forms.BoundsSpecified specified

SetBackColorThemeOverrides()

Declaration
protected virtual void SetBackColorThemeOverrides()

SetBoundsCore(Int32, Int32, Int32, Int32, BoundsSpecified)

Declaration
protected override void SetBoundsCore(int x, int y, int width, int height, BoundsSpecified specified)
Parameters
System.Int32 x

System.Int32 y

System.Int32 width

System.Int32 height

System.Windows.Forms.BoundsSpecified specified

SetForeColorThemeOverrides()

Declaration
protected virtual void SetForeColorThemeOverrides()

SetIsInitializing(Boolean)

This method is used internally!

Declaration
public void SetIsInitializing(bool value)
Parameters
System.Boolean value

ShouldSerializeBackColor()

Determines whether the BackColor property should be serialized.

Declaration
public bool ShouldSerializeBackColor()
Returns
System.Boolean

ShouldSerializeFont()

Determines whether the ForeColor property should be serialized.

Declaration
public bool ShouldSerializeFont()
Returns
System.Boolean

ShouldSerializeForeColor()

Determines whether the ForeColor property should be serialized.

Declaration
public bool ShouldSerializeForeColor()
Returns
System.Boolean

ShouldSerializeProperty(RadProperty)

Determines whether the specified RadProperty should be serialized.

Declaration
protected virtual bool ShouldSerializeProperty(RadProperty property)
Parameters
RadProperty property

Returns
System.Boolean

SuspendUpdate()

Declaration
public void SuspendUpdate()
Implements
IComponentTreeHandler.SuspendUpdate()

UnregisterHostedControl(RadHostItem, Boolean)

Declaration
public virtual void UnregisterHostedControl(RadHostItem hostElement, bool removeControl)
Parameters
RadHostItem hostElement

System.Boolean removeControl

Implements
IComponentTreeHandler.UnregisterHostedControl(RadHostItem, Boolean)

WndProc(ref Message)

Declaration
protected override void WndProc(ref Message m)
Parameters
System.Windows.Forms.Message m

Events

ElementInvalidated

Declaration
public event EventHandler ElementInvalidated
Event Type
System.EventHandler

Initialized

Fires when the control is initialized.

Declaration
public event EventHandler Initialized
Event Type
System.EventHandler

PanGesture

Occurs when a pan gesture was sent by a touch input device.

Declaration
public event PanGestureEventHandler PanGesture
Event Type
PanGestureEventHandler

PressAndTapGesture

Occurs when a press-and-tap gesture was sent by a touch input device.

Declaration
public event PressAndTapGestureEventHandler PressAndTapGesture
Event Type
PressAndTapGestureEventHandler

PropertyChanged

Occurs when a property of an object changes change. Calling the event is developer's responsibility.

Declaration
public event PropertyChangedEventHandler PropertyChanged
Event Type
System.ComponentModel.PropertyChangedEventHandler

RotateGesture

Occurs when a rotate gesture was sent by a touch input device.

Declaration
public event RotateGestureEventHandler RotateGesture
Event Type
RotateGestureEventHandler

ScreenTipNeeded

Occurs prior the ScreenTip of a RadItem instance inside the RadControl is displayed.

Declaration
public event ScreenTipNeededEventHandler ScreenTipNeeded
Event Type
ScreenTipNeededEventHandler

ThemeNameChanged

Fires when the theme name is changed.

Declaration
public event ThemeNameChangedEventHandler ThemeNameChanged
Event Type
ThemeNameChangedEventHandler

Implements
IComponentTreeHandler.ThemeNameChanged

ToolTipTextNeeded

Occurs when a RadItem instance inside the RadControl requires ToolTip text.

Declaration
public event ToolTipTextNeededEventHandler ToolTipTextNeeded
Event Type
ToolTipTextNeededEventHandler

Implements
IComponentTreeHandler.ToolTipTextNeeded

TwoFingerTapGesture

Occurs when a two-finger-tap gesture was sent by a touch input device.

Declaration
public event GestureEventHandler TwoFingerTapGesture
Event Type
GestureEventHandler

ZoomGesture

Occurs when a zoom gesture was sent by a touch input device.

Declaration
public event ZoomGestureEventHandler ZoomGesture
Event Type
ZoomGestureEventHandler

Explicit Interface Implementations

IPCHost.Context

Declaration
IntPtr IPCHost.Context { get; set; }
Returns
System.IntPtr

Implements
IPCHost.Context

IPCHost.ProcessMessage(ref IPCMessage)

Declaration
void IPCHost.ProcessMessage(ref IPCMessage request)
Parameters
IPCMessage request

Implements
IPCHost.ProcessMessage(ref IPCMessage)

IComponentTreeHandler.Behavior

Declaration
ComponentInputBehavior IComponentTreeHandler.Behavior { get; }
Returns
ComponentInputBehavior

Implements
IComponentTreeHandler.Behavior

IComponentTreeHandler.CallOnMouseCaptureChanged(EventArgs)

Declaration
void IComponentTreeHandler.CallOnMouseCaptureChanged(EventArgs e)
Parameters
System.EventArgs e

Implements
IComponentTreeHandler.CallOnMouseCaptureChanged(EventArgs)

IComponentTreeHandler.CallOnScreenTipNeeded(Object, ScreenTipNeededEventArgs)

Declaration
void IComponentTreeHandler.CallOnScreenTipNeeded(object sender, ScreenTipNeededEventArgs e)
Parameters
System.Object sender

ScreenTipNeededEventArgs e

Implements
IComponentTreeHandler.CallOnScreenTipNeeded(Object, ScreenTipNeededEventArgs)

IComponentTreeHandler.CallOnThemeNameChanged(ThemeNameChangedEventArgs)

Declaration
void IComponentTreeHandler.CallOnThemeNameChanged(ThemeNameChangedEventArgs e)
Parameters
ThemeNameChangedEventArgs e

Implements
IComponentTreeHandler.CallOnThemeNameChanged(ThemeNameChangedEventArgs)

IComponentTreeHandler.CallOnToolTipTextNeeded(Object, ToolTipTextNeededEventArgs)

Declaration
void IComponentTreeHandler.CallOnToolTipTextNeeded(object sender, ToolTipTextNeededEventArgs e)
Parameters
System.Object sender

ToolTipTextNeededEventArgs e

Implements
IComponentTreeHandler.CallOnToolTipTextNeeded(Object, ToolTipTextNeededEventArgs)

IComponentTreeHandler.ControlThemeChangedCallback()

Declaration
void IComponentTreeHandler.ControlThemeChangedCallback()
Implements
IComponentTreeHandler.ControlThemeChangedCallback()

IComponentTreeHandler.CreateChildItems(RadElement)

Declaration
void IComponentTreeHandler.CreateChildItems(RadElement parent)
Parameters
RadElement parent

Implements
IComponentTreeHandler.CreateChildItems(RadElement)

IComponentTreeHandler.CreateRootElement()

Declaration
RootRadElement IComponentTreeHandler.CreateRootElement()
Returns
RootRadElement

Implements
IComponentTreeHandler.CreateRootElement()

IComponentTreeHandler.ElementTree

Declaration
ComponentThemableElementTree IComponentTreeHandler.ElementTree { get; }
Returns
ComponentThemableElementTree

Implements
IComponentTreeHandler.ElementTree

IComponentTreeHandler.get_Name()

Declaration
string IComponentTreeHandler.get_Name()
Returns
System.String

Implements
Telerik.WinControls.IComponentTreeHandler.get_Name()

IComponentTreeHandler.GetAmbientPropertyValue(RadProperty)

Declaration
object IComponentTreeHandler.GetAmbientPropertyValue(RadProperty property)
Parameters
RadProperty property

Returns
System.Object

Implements
IComponentTreeHandler.GetAmbientPropertyValue(RadProperty)

IComponentTreeHandler.GetShowFocusCues()

Declaration
bool IComponentTreeHandler.GetShowFocusCues()
Returns
System.Boolean

Implements
IComponentTreeHandler.GetShowFocusCues()

IComponentTreeHandler.InitializeRootElement(RootRadElement)

Declaration
void IComponentTreeHandler.InitializeRootElement(RootRadElement rootElement)
Parameters
RootRadElement rootElement

Implements
IComponentTreeHandler.InitializeRootElement(RootRadElement)

IComponentTreeHandler.Initializing

Declaration
bool IComponentTreeHandler.Initializing { get; }
Returns
System.Boolean

Implements
IComponentTreeHandler.Initializing

IComponentTreeHandler.InvalidateElement(RadElement)

Declaration
void IComponentTreeHandler.InvalidateElement(RadElement element)
Parameters
RadElement element

Implements
IComponentTreeHandler.InvalidateElement(RadElement)

IComponentTreeHandler.InvalidateElement(RadElement, Rectangle)

Declaration
void IComponentTreeHandler.InvalidateElement(RadElement element, Rectangle bounds)
Parameters
RadElement element

System.Drawing.Rectangle bounds

Implements
IComponentTreeHandler.InvalidateElement(RadElement, Rectangle)

IComponentTreeHandler.InvalidateIfNotSuspended()

Declaration
void IComponentTreeHandler.InvalidateIfNotSuspended()
Implements
IComponentTreeHandler.InvalidateIfNotSuspended()

IComponentTreeHandler.IsDesignMode

Declaration
bool IComponentTreeHandler.IsDesignMode { get; }
Returns
System.Boolean

Implements
IComponentTreeHandler.IsDesignMode

IComponentTreeHandler.OnAmbientPropertyChanged(RadProperty)

Declaration
void IComponentTreeHandler.OnAmbientPropertyChanged(RadProperty property)
Parameters
RadProperty property

Implements
IComponentTreeHandler.OnAmbientPropertyChanged(RadProperty)

IComponentTreeHandler.OnCaptureChangeRequested(RadElement, Boolean)

Declaration
bool IComponentTreeHandler.OnCaptureChangeRequested(RadElement element, bool capture)
Parameters
RadElement element

System.Boolean capture

Returns
System.Boolean

Implements
IComponentTreeHandler.OnCaptureChangeRequested(RadElement, Boolean)

IComponentTreeHandler.OnDisplayPropertyChanged(RadPropertyChangedEventArgs)

Declaration
void IComponentTreeHandler.OnDisplayPropertyChanged(RadPropertyChangedEventArgs e)
Parameters
RadPropertyChangedEventArgs e

Implements
IComponentTreeHandler.OnDisplayPropertyChanged(RadPropertyChangedEventArgs)

IComponentTreeHandler.OnFocusRequested(RadElement)

Declaration
bool IComponentTreeHandler.OnFocusRequested(RadElement element)
Parameters
RadElement element

Returns
System.Boolean

Implements
IComponentTreeHandler.OnFocusRequested(RadElement)

IComponentTreeHandler.set_Name(String)

Declaration
void IComponentTreeHandler.set_Name(string value)
Parameters
System.String value

Implements
Telerik.WinControls.IComponentTreeHandler.set_Name(System.String)

IComponentTreeHandler.ThemeClassName

Declaration
string IComponentTreeHandler.ThemeClassName { get; set; }
Returns
System.String

Implements
IComponentTreeHandler.ThemeClassName

Extension Methods

SvgExtentions.Traverse<T>(T, Func<T, IEnumerable<T>>)
SvgExtentions.TraverseDepthFirst<T>(T, Func<T, IEnumerable<T>>)

Was this article helpful?

 / 
Tell us how we can improve this article
Skip
Getting Started
  • Install Now
  • Demos
  • Step-by-Step Tutorial
  • Sample Applications
  • SDK Samples
  • Visual Studio Extensions
Support Resources
  • Code Library
  • Knowledge Base
  • Videos
Community
  • Forums
  • Blogs
  • Feedback Portal
  • Document Processing Feedback Portal

Copyright © 2018 Progress Software Corporation and/or its subsidiaries or affiliates.
All Rights Reserved.

Progress, Telerik, and certain product names used herein are trademarks or registered trademarks of Progress Software Corporation and/or one of its subsidiaries or affiliates in the U.S. and/or other countries. See Trademarks for appropriate markings.