Class
ContainerControlBase

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

Definition

Namespace:Telerik.WinControls.Containers

Assembly:Telerik.WinControls.dll

Syntax:

cs-api-definition
[ComVisible(false)]
public class ContainerControlBase : ContainerControl, IDropTarget, ISynchronizeInvoke, IWin32Window, IBindableComponent, IComponent, IDisposable, IContainerControl

Inheritance: objectMarshalByRefObjectComponentControlScrollableControlContainerControlContainerControlBase

Implements: IBindableComponentIComponentIContainerControlIDisposableIDropTargetISynchronizeInvokeIWin32Window

Inherited Members ContainerControl.AdjustFormScrollbars(bool)ContainerControl.Dispose(bool)ContainerControl.OnAutoValidateChanged(EventArgs)ContainerControl.OnCreateControl()ContainerControl.OnFontChanged(EventArgs)ContainerControl.OnParentChanged(EventArgs)ContainerControl.PerformAutoScale()ContainerControl.ProcessDialogChar(char)ContainerControl.ProcessDialogKey(Keys)ContainerControl.ProcessCmdKey(ref Message, Keys)ContainerControl.ProcessMnemonic(char)ContainerControl.ProcessTabKey(bool)ContainerControl.Select(bool, bool)ContainerControl.UpdateDefaultButton()ContainerControl.Validate()ContainerControl.Validate(bool)ContainerControl.WndProc(ref Message)ContainerControl.AutoScaleDimensionsContainerControl.AutoScaleFactorContainerControl.AutoScaleModeContainerControl.BindingContextContainerControl.CanEnableImeContainerControl.ActiveControlContainerControl.CurrentAutoScaleDimensionsContainerControl.ParentFormScrollableControl.ScrollStateAutoScrollingScrollableControl.ScrollStateHScrollVisibleScrollableControl.ScrollStateVScrollVisibleScrollableControl.ScrollStateUserHasScrolledScrollableControl.ScrollStateFullDragScrollableControl.GetScrollState(int)ScrollableControl.OnMouseWheel(MouseEventArgs)ScrollableControl.OnRightToLeftChanged(EventArgs)ScrollableControl.OnPaintBackground(PaintEventArgs)ScrollableControl.OnPaddingChanged(EventArgs)ScrollableControl.OnVisibleChanged(EventArgs)ScrollableControl.ScaleControl(SizeF, BoundsSpecified)ScrollableControl.SetDisplayRectLocation(int, int)ScrollableControl.ScrollControlIntoView(Control)ScrollableControl.ScrollToControl(Control)ScrollableControl.OnScroll(ScrollEventArgs)ScrollableControl.SetAutoScrollMargin(int, int)ScrollableControl.SetScrollState(int, bool)ScrollableControl.AutoScrollScrollableControl.AutoScrollMarginScrollableControl.AutoScrollPositionScrollableControl.AutoScrollMinSizeScrollableControl.DisplayRectangleScrollableControl.HScrollScrollableControl.HorizontalScrollScrollableControl.VScrollScrollableControl.VerticalScrollScrollableControl.ScrollControl.GetAccessibilityObjectById(int)Control.SetAutoSizeMode(AutoSizeMode)Control.GetAutoSizeMode()Control.GetPreferredSize(Size)Control.AccessibilityNotifyClients(AccessibleEvents, int)Control.AccessibilityNotifyClients(AccessibleEvents, int, int)Control.BeginInvoke(Delegate)Control.BeginInvoke(Delegate, params object[])Control.BringToFront()Control.Contains(Control)Control.CreateAccessibilityInstance()Control.CreateGraphics()Control.CreateHandle()Control.CreateControl()Control.DefWndProc(ref Message)Control.DestroyHandle()Control.DoDragDrop(object, DragDropEffects)Control.DrawToBitmap(Bitmap, Rectangle)Control.EndInvoke(IAsyncResult)Control.FindForm()Control.GetTopLevel()Control.RaiseKeyEvent(object, KeyEventArgs)Control.RaiseMouseEvent(object, MouseEventArgs)Control.Focus()Control.FromChildHandle(IntPtr)Control.FromHandle(IntPtr)Control.GetChildAtPoint(Point, GetChildAtPointSkip)Control.GetChildAtPoint(Point)Control.GetContainerControl()Control.GetScaledBounds(Rectangle, SizeF, BoundsSpecified)Control.GetNextControl(Control, bool)Control.GetStyle(ControlStyles)Control.Hide()Control.InitLayout()Control.Invalidate(Region)Control.Invalidate(Region, bool)Control.Invalidate()Control.Invalidate(bool)Control.Invalidate(Rectangle)Control.Invalidate(Rectangle, bool)Control.Invoke(Delegate)Control.Invoke(Delegate, params object[])Control.InvokePaint(Control, PaintEventArgs)Control.InvokePaintBackground(Control, PaintEventArgs)Control.IsKeyLocked(Keys)Control.IsInputChar(char)Control.IsInputKey(Keys)Control.IsMnemonic(char, string)Control.LogicalToDeviceUnits(int)Control.LogicalToDeviceUnits(Size)Control.ScaleBitmapLogicalToDevice(ref Bitmap)Control.NotifyInvalidate(Rectangle)Control.InvokeOnClick(Control, EventArgs)Control.OnAutoSizeChanged(EventArgs)Control.OnBackColorChanged(EventArgs)Control.OnBackgroundImageChanged(EventArgs)Control.OnBackgroundImageLayoutChanged(EventArgs)Control.OnBindingContextChanged(EventArgs)Control.OnCausesValidationChanged(EventArgs)Control.OnContextMenuChanged(EventArgs)Control.OnContextMenuStripChanged(EventArgs)Control.OnCursorChanged(EventArgs)Control.OnDockChanged(EventArgs)Control.OnEnabledChanged(EventArgs)Control.OnForeColorChanged(EventArgs)Control.OnNotifyMessage(Message)Control.OnParentBackColorChanged(EventArgs)Control.OnParentBackgroundImageChanged(EventArgs)Control.OnParentBindingContextChanged(EventArgs)Control.OnParentCursorChanged(EventArgs)Control.OnParentEnabledChanged(EventArgs)Control.OnParentFontChanged(EventArgs)Control.OnParentForeColorChanged(EventArgs)Control.OnParentRightToLeftChanged(EventArgs)Control.OnParentVisibleChanged(EventArgs)Control.OnPrint(PaintEventArgs)Control.OnTabIndexChanged(EventArgs)Control.OnTabStopChanged(EventArgs)Control.OnTextChanged(EventArgs)Control.OnClick(EventArgs)Control.OnClientSizeChanged(EventArgs)Control.OnControlAdded(ControlEventArgs)Control.OnControlRemoved(ControlEventArgs)Control.OnHandleCreated(EventArgs)Control.OnLocationChanged(EventArgs)Control.OnHandleDestroyed(EventArgs)Control.OnDoubleClick(EventArgs)Control.OnDragEnter(DragEventArgs)Control.OnDragOver(DragEventArgs)Control.OnDragLeave(EventArgs)Control.OnDragDrop(DragEventArgs)Control.OnGiveFeedback(GiveFeedbackEventArgs)Control.OnEnter(EventArgs)Control.InvokeGotFocus(Control, EventArgs)Control.OnGotFocus(EventArgs)Control.OnHelpRequested(HelpEventArgs)Control.OnInvalidated(InvalidateEventArgs)Control.OnKeyDown(KeyEventArgs)Control.OnKeyPress(KeyPressEventArgs)Control.OnKeyUp(KeyEventArgs)Control.OnLeave(EventArgs)Control.InvokeLostFocus(Control, EventArgs)Control.OnLostFocus(EventArgs)Control.OnMarginChanged(EventArgs)Control.OnMouseDoubleClick(MouseEventArgs)Control.OnMouseClick(MouseEventArgs)Control.OnMouseCaptureChanged(EventArgs)Control.OnMouseDown(MouseEventArgs)Control.OnMouseEnter(EventArgs)Control.OnMouseLeave(EventArgs)Control.OnDpiChangedBeforeParent(EventArgs)Control.OnDpiChangedAfterParent(EventArgs)Control.OnMouseHover(EventArgs)Control.OnMouseMove(MouseEventArgs)Control.OnMouseUp(MouseEventArgs)Control.OnMove(EventArgs)Control.OnPaint(PaintEventArgs)Control.OnQueryContinueDrag(QueryContinueDragEventArgs)Control.OnRegionChanged(EventArgs)Control.OnResize(EventArgs)Control.OnPreviewKeyDown(PreviewKeyDownEventArgs)Control.OnSizeChanged(EventArgs)Control.OnChangeUICues(UICuesEventArgs)Control.OnStyleChanged(EventArgs)Control.OnSystemColorsChanged(EventArgs)Control.OnValidating(CancelEventArgs)Control.OnValidated(EventArgs)Control.RescaleConstantsForDpi(int, int)Control.PerformLayout()Control.PerformLayout(Control, string)Control.PointToClient(Point)Control.PointToScreen(Point)Control.PreProcessMessage(ref Message)Control.PreProcessControlMessage(ref Message)Control.ProcessKeyEventArgs(ref Message)Control.ProcessKeyMessage(ref Message)Control.ProcessKeyPreview(ref Message)Control.RaiseDragEvent(object, DragEventArgs)Control.RaisePaintEvent(object, PaintEventArgs)Control.RecreateHandle()Control.RectangleToClient(Rectangle)Control.RectangleToScreen(Rectangle)Control.ReflectMessage(IntPtr, ref Message)Control.Refresh()Control.ResetMouseEventArgs()Control.ResetText()Control.ResumeLayout()Control.ResumeLayout(bool)Control.Scale(SizeF)Control.Select()Control.SelectNextControl(Control, bool, bool, bool, bool)Control.SendToBack()Control.SetBounds(int, int, int, int)Control.SetBounds(int, int, int, int, BoundsSpecified)Control.SetBoundsCore(int, int, int, int, BoundsSpecified)Control.SetClientSizeCore(int, int)Control.SizeFromClientSize(Size)Control.SetStyle(ControlStyles, bool)Control.SetTopLevel(bool)Control.SetVisibleCore(bool)Control.RtlTranslateAlignment(HorizontalAlignment)Control.RtlTranslateAlignment(LeftRightAlignment)Control.RtlTranslateAlignment(ContentAlignment)Control.RtlTranslateHorizontal(HorizontalAlignment)Control.RtlTranslateLeftRight(LeftRightAlignment)Control.RtlTranslateContent(ContentAlignment)Control.Show()Control.SuspendLayout()Control.Update()Control.UpdateBounds()Control.UpdateBounds(int, int, int, int)Control.UpdateBounds(int, int, int, int, int, int)Control.UpdateZOrder()Control.UpdateStyles()Control.OnImeModeChanged(EventArgs)Control.AccessibilityObjectControl.AccessibleDefaultActionDescriptionControl.AccessibleDescriptionControl.AccessibleNameControl.AccessibleRoleControl.AllowDropControl.AnchorControl.AutoScrollOffsetControl.LayoutEngineControl.BackColorControl.BackgroundImageControl.BackgroundImageLayoutControl.BottomControl.BoundsControl.CanFocusControl.CanRaiseEventsControl.CanSelectControl.CaptureControl.CausesValidationControl.CheckForIllegalCrossThreadCallsControl.ClientRectangleControl.ClientSizeControl.CompanyNameControl.ContainsFocusControl.ContextMenuControl.ContextMenuStripControl.ControlsControl.CreatedControl.CursorControl.DataBindingsControl.DefaultBackColorControl.DefaultCursorControl.DefaultFontControl.DefaultForeColorControl.DefaultMaximumSizeControl.DefaultMinimumSizeControl.DefaultSizeControl.DeviceDpiControl.IsDisposedControl.DisposingControl.DockControl.DoubleBufferedControl.EnabledControl.FocusedControl.FontControl.FontHeightControl.ForeColorControl.HandleControl.HasChildrenControl.HeightControl.IsHandleCreatedControl.InvokeRequiredControl.IsAccessibleControl.IsMirroredControl.LeftControl.LocationControl.MarginControl.MaximumSizeControl.MinimumSizeControl.ModifierKeysControl.MouseButtonsControl.MousePositionControl.NameControl.ParentControl.ProductNameControl.ProductVersionControl.RecreatingHandleControl.RegionControl.RenderRightToLeftControl.ResizeRedrawControl.RightControl.RightToLeftControl.ScaleChildrenControl.SiteControl.SizeControl.TabIndexControl.TabStopControl.TagControl.TextControl.TopControl.TopLevelControlControl.ShowKeyboardCuesControl.ShowFocusCuesControl.UseWaitCursorControl.VisibleControl.WidthControl.PreferredSizeControl.PaddingControl.DefaultImeModeControl.ImeModeControl.ImeModeBaseControl.PropagatingImeModeControl.BackColorChangedControl.BackgroundImageChangedControl.BackgroundImageLayoutChangedControl.BindingContextChangedControl.CausesValidationChangedControl.ClientSizeChangedControl.ContextMenuChangedControl.ContextMenuStripChangedControl.CursorChangedControl.DockChangedControl.EnabledChangedControl.FontChangedControl.ForeColorChangedControl.LocationChangedControl.MarginChangedControl.RegionChangedControl.RightToLeftChangedControl.SizeChangedControl.TabIndexChangedControl.TabStopChangedControl.TextChangedControl.VisibleChangedControl.ClickControl.ControlAddedControl.ControlRemovedControl.DragDropControl.DragEnterControl.DragOverControl.DragLeaveControl.GiveFeedbackControl.HandleCreatedControl.HandleDestroyedControl.HelpRequestedControl.InvalidatedControl.PaddingChangedControl.PaintControl.QueryContinueDragControl.QueryAccessibilityHelpControl.DoubleClickControl.EnterControl.GotFocusControl.KeyDownControl.KeyPressControl.KeyUpControl.LayoutControl.LeaveControl.LostFocusControl.MouseClickControl.MouseDoubleClickControl.MouseCaptureChangedControl.MouseDownControl.MouseEnterControl.MouseLeaveControl.DpiChangedBeforeParentControl.DpiChangedAfterParentControl.MouseHoverControl.MouseMoveControl.MouseUpControl.MouseWheelControl.MoveControl.PreviewKeyDownControl.ResizeControl.ChangeUICuesControl.StyleChangedControl.SystemColorsChangedControl.ValidatingControl.ValidatedControl.ParentChangedControl.ImeModeChangedComponent.Dispose()Component.GetService(Type)Component.ToString()Component.EventsComponent.ContainerComponent.DesignModeComponent.DisposedMarshalByRefObject.MemberwiseClone(bool)MarshalByRefObject.GetLifetimeService()MarshalByRefObject.InitializeLifetimeService()MarshalByRefObject.CreateObjRef(Type)

Constructors

ContainerControlBase()

Initializes a new instance of the ContainerControlBase class.

Declaration

cs-api-definition
public ContainerControlBase()

Fields

allowedTypes

Declaration

cs-api-definition
protected readonly List<Type> allowedTypes

Field Value

List<Type>

borderSize

Declaration

cs-api-definition
protected int borderSize

Field Value

int

forbiddenTypes

Declaration

cs-api-definition
protected readonly List<Type> forbiddenTypes

Field Value

List<Type>

properties

Declaration

cs-api-definition
protected Hashtable properties

Field Value

Hashtable

validationShema

Declaration

cs-api-definition
protected TypeRestriction validationShema

Field Value

TypeRestriction

Properties

BorderStyle

Specifies the border style for a control.

Declaration

cs-api-definition
public virtual BorderStyle BorderStyle { get; set; }

Property Value

BorderStyle

CreateParams

Encapsulates the information needed when creating a control.

Declaration

cs-api-definition
protected override CreateParams CreateParams { get; }

Property Value

CreateParams

Overrides ContainerControl.CreateParams

DefaultMargin

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

Declaration

cs-api-definition
protected override Padding DefaultMargin { get; }

Property Value

Padding

Overrides Control.DefaultMargin

DefaultPadding

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

Declaration

cs-api-definition
protected override Padding DefaultPadding { get; }

Property Value

Padding

Overrides Control.DefaultPadding

SizeWeight

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

Declaration

cs-api-definition
public virtual double SizeWeight { get; set; }

Property Value

double

Methods

AddEventHandler(object, Delegate)

Adds a delegate to the list.

Declaration

cs-api-definition
protected void AddEventHandler(object eventKey, Delegate handler)

Parameters

eventKey

object

The object that owns the event.

handler

Delegate

The delegate to add to the list.

CalculateContainerClientArea()

Declaration

cs-api-definition
protected virtual Rectangle CalculateContainerClientArea()

Returns

Rectangle

ContainerLayout(LayoutEventArgs)

Declaration

cs-api-definition
protected virtual void ContainerLayout(LayoutEventArgs e)

Parameters

e

LayoutEventArgs

CreateControlsInstance()

Overrides Control.CreateControlsInstance.

Declaration

cs-api-definition
protected override Control.ControlCollection CreateControlsInstance()

Returns

Control.ControlCollection

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

Overrides Control.CreateControlsInstance()

GetAllowedTypes()

Declaration

cs-api-definition
protected virtual List<Type> GetAllowedTypes()

Returns

List<Type>

GetForbiddenTypes()

Declaration

cs-api-definition
protected virtual List<Type> GetForbiddenTypes()

Returns

List<Type>

GetPropertyValue(object)

Retrieves the value of the specified property.

Declaration

cs-api-definition
protected object GetPropertyValue(object key)

Parameters

key

object

The property whose value to retrieve.

Returns

object

GetValidationTypes()

Declaration

cs-api-definition
protected virtual List<Type> GetValidationTypes()

Returns

List<Type>

GetValidationTypes(TypeRestriction)

Declaration

cs-api-definition
protected virtual List<Type> GetValidationTypes(TypeRestriction validationShema)

Parameters

validationShema

TypeRestriction

Returns

List<Type>

IsControlNullOrEmpty(Control)

Declaration

cs-api-definition
protected static bool IsControlNullOrEmpty(Control control)

Parameters

control

Control

Returns

bool

IsPropertyDefined(object)

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

Declaration

cs-api-definition
protected bool IsPropertyDefined(object key)

Parameters

key

object

The property to evaluate.

Returns

bool

LayoutContentCore()

Declaration

cs-api-definition
protected virtual void LayoutContentCore()

OnBorderStyleChanged(EventArgs)

Raises the BorderStyleChanged event.

Declaration

cs-api-definition
protected virtual void OnBorderStyleChanged(EventArgs e)

Parameters

e

EventArgs

An EventArgs that contains the event data.

OnLayout(LayoutEventArgs)

Raises the Layout event.

Declaration

cs-api-definition
protected override void OnLayout(LayoutEventArgs e)

Parameters

e

LayoutEventArgs

A LayoutEventArgs containing the event data.

Overrides ContainerControl.OnLayout(LayoutEventArgs)

RaiseEvent(object, EventArgs)

Raises the specified event.

Declaration

cs-api-definition
protected virtual void RaiseEvent(object eventKey, EventArgs e)

Parameters

eventKey

object

The object that owns the event.

e

EventArgs

An EventArgs that contains the event data.

RegisterAllowedType(Type)

Declaration

cs-api-definition
protected virtual void RegisterAllowedType(Type type)

Parameters

type

Type

RegisterForbiddenType(Type)

Declaration

cs-api-definition
protected virtual void RegisterForbiddenType(Type type)

Parameters

type

Type

RemoveEventHandler(object, Delegate)

Removes a delegate from the list.

Declaration

cs-api-definition
protected void RemoveEventHandler(object eventKey, Delegate handler)

Parameters

eventKey

object

The object that owns the event.

handler

Delegate

The delegate to remove from the list.

RemovePropertyValue(object)

Removes the specified property from the properties collection.

Declaration

cs-api-definition
protected void RemovePropertyValue(object key)

Parameters

key

object

The property to remove.

SendMessage(int, bool, int)

Declaration

cs-api-definition
protected IntPtr SendMessage(int msg, bool wparam, int lparam)

Parameters

msg

int

wparam

bool

lparam

int

Returns

IntPtr

SetPropertyValue(object, object)

Sets the value of the specified property.

Declaration

cs-api-definition
protected void SetPropertyValue(object key, object value)

Parameters

key

object

The property whose value to set.

value

object

An object representing the value to assign to the property.

Events

BorderStyleChanged

Occurs when the value of the BorderStyle property has changed.

Declaration

cs-api-definition
public event EventHandler BorderStyleChanged

Event Value

EventHandler