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.

Definition

Constructors

FormControlBehavior()

Creates an instance of the RadFormBehaviorBase class. This instance has no Form associated with it.

Declaration

cs-api-definition
public FormControlBehavior()

FormControlBehavior(IComponentTreeHandler)

Creates an instance of the RadFormBehaviorBase class.

Declaration

cs-api-definition
public FormControlBehavior(IComponentTreeHandler targetTreeHandler)

Parameters

targetTreeHandler

IComponentTreeHandler

An implementation of the IComponentTreeHandler which this behavior applies to

FormControlBehavior(IComponentTreeHandler, bool)

Creates an instance of the RadFormBehavior class.

Declaration

cs-api-definition
public FormControlBehavior(IComponentTreeHandler targetTreeHandler, bool handleCreateChildItems)

Parameters

targetTreeHandler

IComponentTreeHandler

An implementation of the IComponentTreeHandler which this behavior applies to

handleCreateChildItems

bool

Fields

targetHandler

Declaration

cs-api-definition
protected IComponentTreeHandler targetHandler

Field Value

IComponentTreeHandler

Properties

BorderWidth

Gets the width of the form border

Declaration

cs-api-definition
public abstract Padding BorderWidth { get; }

Property Value

Padding

CaptionHeight

Gets the height of the caption that is drawn by the behavior.

Declaration

cs-api-definition
public abstract int CaptionHeight { get; }

Property Value

int

ClientMargin

Gets the margin that describes the size and position of the client area.

Declaration

cs-api-definition
public abstract Padding ClientMargin { get; }

Property Value

Padding

FormElement

Gets the RadElement instance that represents the root element containing the hierarchy that builds the visual appearance of the form.

Declaration

cs-api-definition
public abstract RadElement FormElement { get; }

Property Value

RadElement

Methods

CallBaseWndProc(ref Message)

Declaration

cs-api-definition
protected void CallBaseWndProc(ref Message m)

Parameters

m

Message

CallDefWndProc(ref Message)

Declaration

cs-api-definition
protected void CallDefWndProc(ref Message m)

Parameters

m

Message

CreateChildItems(RadElement)

Declaration

cs-api-definition
public virtual void CreateChildItems(RadElement parent)

Parameters

parent

RadElement

CreateParams(CreateParams)

Declaration

cs-api-definition
public virtual CreateParams CreateParams(CreateParams parameters)

Parameters

parameters

CreateParams

Returns

CreateParams

Dispose(bool)

Declaration

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

Parameters

disposing

bool

Overrides Component.Dispose(bool)

FormHandleCreated()

Declaration

cs-api-definition
public virtual void FormHandleCreated()

HandleWndProc(ref Message)

Declaration

cs-api-definition
public abstract bool HandleWndProc(ref Message m)

Parameters

m

Message

Returns

bool

InvalidateElement(RadElement, Rectangle)

Declaration

cs-api-definition
public abstract void InvalidateElement(RadElement element, Rectangle bounds)

Parameters

element

RadElement

bounds

Rectangle

OnAssociatedFormPaint(PaintEventArgs)

Declaration

cs-api-definition
public virtual bool OnAssociatedFormPaint(PaintEventArgs args)

Parameters

args

PaintEventArgs

Returns

bool

OnAssociatedFormPaintBackground(PaintEventArgs)

Declaration

cs-api-definition
public virtual bool OnAssociatedFormPaintBackground(PaintEventArgs args)

Parameters

args

PaintEventArgs

Returns

bool

OnFormAssociated()

Occurs when a form is associated with the behavior.

Declaration

cs-api-definition
protected virtual void OnFormAssociated()