skip navigation
  • Product Bundles

    DevCraft

    All Telerik .NET tools and Kendo UI JavaScript components in one package. Now enhanced with:

    • AI Coding Assistants
    • Embedded Reporting
    • Document Processing Libraries
    • SSO Account Sign-in

    Web

    Kendo UI UI for Angular UI for Vue UI for jQuery KendoReact UI for Blazor UI for ASP.NET Core UI for ASP.NET MVC UI for ASP.NET AJAX

    Mobile

    UI for .NET MAUI

    Document Management

    Telerik Document Processing

    Desktop

    UI for .NET MAUI UI for WinUI UI for WinForms UI for WPF

    Reporting

    Telerik Reporting Telerik Report Server

    Testing & Mocking

    Test Studio Telerik JustMock

    CMS

    Sitefinity

    AI Productivity Tools

    AI Coding Assistants

    UI/UX Tools

    ThemeBuilder Design System Kit Templates and Building Blocks

    Debugging

    Fiddler Fiddler Everywhere Fiddler Classic Fiddler Everywhere Reporter FiddlerCore

    Free Tools

    KendoReact Free VB.NET to C# Converter Testing Framework
    View all products
  • Overview
  • Demos
    • What's New
    • Roadmap
    • Release History
  • Support and Learning

    • Support and Learning Hub
    • First Steps
    • Docs
    • Demos
    • Virtual Classroom
    • Forums
    • Videos
    • Blogs
    • Accessibility
    • Submit a Ticket

    Productivity and Design Tools

    • Visual Studio Extensions
    • Visual Studio Templates
    • Embedded Reporting
  • Pricing
  • Shopping cart
    • Account Overview
    • Your Licenses
    • Downloads
    • Support Center
    • Forum Profile
    • Payment Methods
    • Edit Profile
    • Log out
  • Login
  • Contact Us
  • Try now

Class ContainerControlBase

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

Inheritance
System.Object
ContainerControlBase
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

Declaration
protected TypeRestriction validationShema
Field Value
TypeRestriction

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

Extension Methods

SvgExtentions.Traverse<T>(T, Func<T, IEnumerable<T>>)
SvgExtentions.TraverseDepthFirst<T>(T, Func<T, IEnumerable<T>>)
Getting Started
  • Install Now
  • Demos
  • Step-by-Step Tutorial
  • Sample Applications
  • SDK Samples
  • Visual Studio Extensions
Support Resources
  • Code Library
  • Knowledge Base
  • Videos
Community
  • Forums
  • Blogs
  • Feedback Portal
  • Document Processing Feedback Portal

Copyright © 2018 Progress Software Corporation and/or its subsidiaries or affiliates.
All Rights Reserved.

Progress, Telerik, and certain product names used herein are trademarks or registered trademarks of Progress Software Corporation and/or one of its subsidiaries or affiliates in the U.S. and/or other countries. See Trademarks for appropriate markings.