New to Telerik UI for WinFormsStart a free 30-day trial

Represents a base class for all container controls - controls that contain other controls.

Definition

Namespace:Telerik.WinControls.Containers

Assembly:Telerik.WinControls.dll

Syntax:

C#
[ComVisible(false)]
public class ContainerControlBase : ContainerControl, IDropTarget, ISynchronizeInvoke, IWin32Window, IBindableComponent, IComponent, IDisposable, IContainerControl

Inheritance: objectMarshalByRefObjectComponentControlScrollableControlContainerControlContainerControlBase...

Implements: IBindableComponentIComponentIContainerControlIDisposableIDropTargetISynchronizeInvokeIWin32Window...

Constructors

Initializes a new instance of the ContainerControlBase class.

C#
public ContainerControlBase()

Fields

C#
protected readonly List<Type> allowedTypes
C#
protected int borderSize
C#
protected readonly List<Type> forbiddenTypes
C#
protected Hashtable properties
C#
protected TypeRestriction validationShema

Properties

Specifies the border style for a control.

C#
public virtual BorderStyle BorderStyle { get; set; }

Encapsulates the information needed when creating a control.

C#
protected override CreateParams CreateParams { get; }

Overrides: ContainerControl.CreateParams

Gets the space, in pixels, that is specified by default between controls.

C#
protected override Padding DefaultMargin { get; }

Overrides: Control.DefaultMargin

Gets the internal spacing, in pixels, of the contents of a control.

C#
protected override Padding DefaultPadding { get; }

Overrides: Control.DefaultPadding

this is the statistical weight of the container which is taken into account when the contaner participates in a layout chain.

C#
public virtual double SizeWeight { get; set; }

Methods

Adds a delegate to the list.

C#
protected void AddEventHandler(object eventKey, Delegate handler)
Parameters:eventKeyobject

The object that owns the event.

handlerDelegate

The delegate to add to the list.

C#
protected virtual Rectangle CalculateContainerClientArea()
Returns:

Rectangle

C#
protected virtual void ContainerLayout(LayoutEventArgs e)
Parameters:eLayoutEventArgs

Overrides Control.CreateControlsInstance.

C#
protected override Control.ControlCollection CreateControlsInstance()
Returns:

Control.ControlCollection

A new instance of ContainerControlBase.ContainerTypedControlCollection assigned to the control.

Overrides: Control.CreateControlsInstance()

C#
protected virtual List<Type> GetAllowedTypes()
Returns:

List<Type>

C#
protected virtual List<Type> GetForbiddenTypes()
Returns:

List<Type>

Retrieves the value of the specified property.

C#
protected object GetPropertyValue(object key)
Parameters:keyobject

The property whose value to retrieve.

Returns:

object

C#
protected virtual List<Type> GetValidationTypes()
Returns:

List<Type>

C#
protected virtual List<Type> GetValidationTypes(TypeRestriction validationShema)
Parameters:validationShemaTypeRestrictionReturns:

List<Type>

C#
protected static bool IsControlNullOrEmpty(Control control)
Parameters:controlControlReturns:

bool

Retrieves a boolean value indicating if the specified property has been explicitly set.

C#
protected bool IsPropertyDefined(object key)
Parameters:keyobject

The property to evaluate.

Returns:

bool

C#
protected virtual void LayoutContentCore()

Raises the BorderStyleChanged event.

C#
protected virtual void OnBorderStyleChanged(EventArgs e)
Parameters:eEventArgs

An EventArgs that contains the event data.

Raises the Layout event.

C#
protected override void OnLayout(LayoutEventArgs e)
Parameters:eLayoutEventArgs

A LayoutEventArgs containing the event data.

Overrides: ContainerControl.OnLayout(LayoutEventArgs)

Raises the specified event.

C#
protected virtual void RaiseEvent(object eventKey, EventArgs e)
Parameters:eventKeyobject

The object that owns the event.

eEventArgs

An EventArgs that contains the event data.

C#
protected virtual void RegisterAllowedType(Type type)
Parameters:typeType
C#
protected virtual void RegisterForbiddenType(Type type)
Parameters:typeType

Removes a delegate from the list.

C#
protected void RemoveEventHandler(object eventKey, Delegate handler)
Parameters:eventKeyobject

The object that owns the event.

handlerDelegate

The delegate to remove from the list.

Removes the specified property from the properties collection.

C#
protected void RemovePropertyValue(object key)
Parameters:keyobject

The property to remove.

C#
protected IntPtr SendMessage(int msg, bool wparam, int lparam)
Parameters:msgintwparamboollparamintReturns:

IntPtr

Sets the value of the specified property.

C#
protected void SetPropertyValue(object key, object value)
Parameters:keyobject

The property whose value to set.

valueobject

An object representing the value to assign to the property.

Events

Occurs when the value of the BorderStyle property has changed.

C#
public event EventHandler BorderStyleChanged