Class FormControlBehavior
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.
Inheritance
Namespace: Telerik.WinControls.UI
Assembly: Telerik.WinControls.UI.dll
Syntax
public abstract class FormControlBehavior : Component
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
IComponentTreeHandler
targetTreeHandler
An implementation of the IComponentTreeHandler which this behavior applies to |
FormControlBehavior(IComponentTreeHandler, Boolean)
Creates an instance of the RadFormBehavior class.
Declaration
public FormControlBehavior(IComponentTreeHandler targetTreeHandler, bool handleCreateChildItems)
Parameters
IComponentTreeHandler
targetTreeHandler
An implementation of the IComponentTreeHandler which this behavior applies to |
System.Boolean
handleCreateChildItems
|
Fields
targetHandler
Properties
BorderWidth
Gets the width of the form border
Declaration
public abstract Padding BorderWidth { get; }
Property Value
System.Windows.Forms.Padding
|
CaptionHeight
Gets the height of the caption that is drawn by the behavior.
Declaration
public abstract int CaptionHeight { get; }
Property Value
System.Int32
|
ClientMargin
Gets the margin that describes the size and position of the client area.
Declaration
public abstract Padding ClientMargin { get; }
Property Value
System.Windows.Forms.Padding
|
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
RadElement
|
Methods
CallBaseWndProc(ref Message)
Declaration
protected void CallBaseWndProc(ref Message m)
Parameters
System.Windows.Forms.Message
m
|
CallDefWndProc(ref Message)
Declaration
protected void CallDefWndProc(ref Message m)
Parameters
System.Windows.Forms.Message
m
|
CreateChildItems(RadElement)
CreateParams(CreateParams)
Declaration
public virtual CreateParams CreateParams(CreateParams parameters)
Parameters
System.Windows.Forms.CreateParams
parameters
|
Returns
System.Windows.Forms.CreateParams
|
Dispose(Boolean)
Declaration
protected override void Dispose(bool disposing)
Parameters
System.Boolean
disposing
|
FormHandleCreated()
Declaration
public virtual void FormHandleCreated()
HandleWndProc(ref Message)
Declaration
public abstract bool HandleWndProc(ref Message m)
Parameters
System.Windows.Forms.Message
m
|
Returns
System.Boolean
|
InvalidateElement(RadElement, Rectangle)
Declaration
public abstract void InvalidateElement(RadElement element, Rectangle bounds)
Parameters
RadElement
element
|
System.Drawing.Rectangle
bounds
|
OnAssociatedFormPaint(PaintEventArgs)
Declaration
public virtual bool OnAssociatedFormPaint(PaintEventArgs args)
Parameters
System.Windows.Forms.PaintEventArgs
args
|
Returns
System.Boolean
|
OnAssociatedFormPaintBackground(PaintEventArgs)
Declaration
public virtual bool OnAssociatedFormPaintBackground(PaintEventArgs args)
Parameters
System.Windows.Forms.PaintEventArgs
args
|
Returns
System.Boolean
|
OnFormAssociated()
Occurs when a form is associated with the behavior.
Declaration
protected virtual void OnFormAssociated()