ClassFormControlBehavior
This is a base class for a behavior that can be associated with a RadFormControlBase instance. The behavior defines the behavior and appearance of the form.
Definition
Namespace:Telerik.WinControls.UI
Assembly:Telerik.WinControls.UI.dll
Syntax:
public abstract class FormControlBehavior : Component, IComponent, IDisposable
Inheritance: objectMarshalByRefObjectComponentFormControlBehavior
Derived Classes:
Implements:
Inherited Members
Constructors
FormControlBehavior()
Creates an instance of the RadFormBehaviorBase class. This instance has no Form associated with it.
Declaration
public FormControlBehavior()
FormControlBehavior(IComponentTreeHandler)
Creates an instance of the RadFormBehaviorBase class.
Declaration
public FormControlBehavior(IComponentTreeHandler targetTreeHandler)
Parameters
targetTreeHandler
An implementation of the IComponentTreeHandler which this behavior applies to
FormControlBehavior(IComponentTreeHandler, bool)
Creates an instance of the RadFormBehavior class.
Declaration
public FormControlBehavior(IComponentTreeHandler targetTreeHandler, bool handleCreateChildItems)
Parameters
targetTreeHandler
An implementation of the IComponentTreeHandler which this behavior applies to
handleCreateChildItems
Fields
targetHandler
Declaration
protected IComponentTreeHandler targetHandler
Field Value
Properties
BorderWidth
Gets the width of the form border
CaptionHeight
Gets the height of the caption that is drawn by the behavior.
ClientMargin
Gets the margin that describes the size and position of the client area.
FormElement
Gets the RadElement instance that represents the root element containing the hierarchy that builds the visual appearance of the form.
Declaration
public abstract RadElement FormElement { get; }
Property Value
Methods
CreateChildItems(RadElement)
Declaration
public virtual void CreateChildItems(RadElement parent)
Parameters
parent
CreateParams(CreateParams)
Declaration
public virtual CreateParams CreateParams(CreateParams parameters)
Parameters
parameters
Returns
Dispose(bool)
Declaration
protected override void Dispose(bool disposing)
Parameters
disposing
Overrides
FormHandleCreated()
Declaration
public virtual void FormHandleCreated()
InvalidateElement(RadElement, Rectangle)
Declaration
public abstract void InvalidateElement(RadElement element, Rectangle bounds)
Parameters
element
bounds
OnAssociatedFormPaint(PaintEventArgs)
Declaration
public virtual bool OnAssociatedFormPaint(PaintEventArgs args)
Parameters
args
Returns
OnAssociatedFormPaintBackground(PaintEventArgs)
Declaration
public virtual bool OnAssociatedFormPaintBackground(PaintEventArgs args)
Parameters
args
Returns
OnFormAssociated()
Occurs when a form is associated with the behavior.
Declaration
protected virtual void OnFormAssociated()