Class ContainerControlBase
Represents a base class for all container controls - controls that contain other controls.
Inheritance
Namespace: Telerik.WinControls.Containers
Assembly: Telerik.WinControls.dll
Syntax
[ComVisible(false)]
public class ContainerControlBase : ContainerControl
Constructors
ContainerControlBase()
Initializes a new instance of the ContainerControlBase class.
Declaration
public ContainerControlBase()
Fields
allowedTypes
Declaration
protected readonly List<Type> allowedTypes
Field Value
System.Collections.Generic.List<System.Type>
|
borderSize
Declaration
protected int borderSize
Field Value
System.Int32
|
forbiddenTypes
Declaration
protected readonly List<Type> forbiddenTypes
Field Value
System.Collections.Generic.List<System.Type>
|
properties
Declaration
protected Hashtable properties
Field Value
System.Collections.Hashtable
|
validationShema
Properties
BorderStyle
Specifies the border style for a control.
Declaration
public virtual BorderStyle BorderStyle { get; set; }
Property Value
System.Windows.Forms.BorderStyle
|
CreateParams
Encapsulates the information needed when creating a control.
Declaration
protected override CreateParams CreateParams { get; }
Property Value
System.Windows.Forms.CreateParams
|
DefaultMargin
Gets the space, in pixels, that is specified by default between controls.
Declaration
protected override Padding DefaultMargin { get; }
Property Value
System.Windows.Forms.Padding
|
DefaultPadding
Gets the internal spacing, in pixels, of the contents of a control.
Declaration
protected override Padding DefaultPadding { get; }
Property Value
System.Windows.Forms.Padding
|
SizeWeight
this is the statistical weight of the container which is taken into account when the contaner participates in a layout chain.
Declaration
public virtual double SizeWeight { get; set; }
Property Value
System.Double
|
Methods
AddEventHandler(Object, Delegate)
Adds a delegate to the list.
Declaration
protected void AddEventHandler(object eventKey, Delegate handler)
Parameters
System.Object
eventKey
The object that owns the event. |
System.Delegate
handler
The delegate to add to the list. |
CalculateContainerClientArea()
Declaration
protected virtual Rectangle CalculateContainerClientArea()
Returns
System.Drawing.Rectangle
|
ContainerLayout(LayoutEventArgs)
Declaration
protected virtual void ContainerLayout(LayoutEventArgs e)
Parameters
System.Windows.Forms.LayoutEventArgs
e
|
CreateControlsInstance()
Overrides Control.CreateControlsInstance.
Declaration
protected override Control.ControlCollection CreateControlsInstance()
Returns
System.Windows.Forms.Control.ControlCollection
A new instance of ContainerControlBase.ContainerTypedControlCollection assigned to the control. |
GetAllowedTypes()
Declaration
protected virtual List<Type> GetAllowedTypes()
Returns
System.Collections.Generic.List<System.Type>
|
GetForbiddenTypes()
Declaration
protected virtual List<Type> GetForbiddenTypes()
Returns
System.Collections.Generic.List<System.Type>
|
GetPropertyValue(Object)
Retrieves the value of the specified property.
Declaration
protected object GetPropertyValue(object key)
Parameters
System.Object
key
The property whose value to retrieve. |
Returns
System.Object
|
GetValidationTypes()
Declaration
protected virtual List<Type> GetValidationTypes()
Returns
System.Collections.Generic.List<System.Type>
|
GetValidationTypes(TypeRestriction)
Declaration
protected virtual List<Type> GetValidationTypes(TypeRestriction validationShema)
Parameters
TypeRestriction
validationShema
|
Returns
System.Collections.Generic.List<System.Type>
|
IsControlNullOrEmpty(Control)
Declaration
protected static bool IsControlNullOrEmpty(Control control)
Parameters
System.Windows.Forms.Control
control
|
Returns
System.Boolean
|
IsPropertyDefined(Object)
Retrieves a boolean value indicating if the specified property has been explicitly set.
Declaration
protected bool IsPropertyDefined(object key)
Parameters
System.Object
key
The property to evaluate. |
Returns
System.Boolean
|
LayoutContentCore()
Declaration
protected virtual void LayoutContentCore()
OnBorderStyleChanged(EventArgs)
Raises the BorderStyleChanged event.
Declaration
protected virtual void OnBorderStyleChanged(EventArgs e)
Parameters
System.EventArgs
e
An EventArgs that contains the event data. |
OnLayout(LayoutEventArgs)
Raises the System.Windows.Forms.Control.Layout event.
Declaration
protected override void OnLayout(LayoutEventArgs e)
Parameters
System.Windows.Forms.LayoutEventArgs
e
A System.Windows.Forms.LayoutEventArgs containing the event data. |
RaiseEvent(Object, EventArgs)
Raises the specified event.
Declaration
protected virtual void RaiseEvent(object eventKey, EventArgs e)
Parameters
System.Object
eventKey
The object that owns the event. |
System.EventArgs
e
An System.EventArgs that contains the event data. |
RegisterAllowedType(Type)
Declaration
protected virtual void RegisterAllowedType(Type type)
Parameters
System.Type
type
|
RegisterForbiddenType(Type)
Declaration
protected virtual void RegisterForbiddenType(Type type)
Parameters
System.Type
type
|
RemoveEventHandler(Object, Delegate)
Removes a delegate from the list.
Declaration
protected void RemoveEventHandler(object eventKey, Delegate handler)
Parameters
System.Object
eventKey
The object that owns the event. |
System.Delegate
handler
The delegate to remove from the list. |
RemovePropertyValue(Object)
Removes the specified property from the properties collection.
Declaration
protected void RemovePropertyValue(object key)
Parameters
System.Object
key
The property to remove. |
SendMessage(Int32, Boolean, Int32)
Declaration
protected IntPtr SendMessage(int msg, bool wparam, int lparam)
Parameters
System.Int32
msg
|
System.Boolean
wparam
|
System.Int32
lparam
|
Returns
System.IntPtr
|
SetPropertyValue(Object, Object)
Sets the value of the specified property.
Declaration
protected void SetPropertyValue(object key, object value)
Parameters
System.Object
key
The property whose value to set. |
System.Object
value
An object representing the value to assign to the property. |
Events
BorderStyleChanged
Occurs when the value of the BorderStyle property has changed.
Declaration
public event EventHandler BorderStyleChanged
Event Type
System.EventHandler
|