New to Telerik UI for WinForms? Start a free 30-day trial

Routes consumer-added control collection operations into the scrollable panel's content container while keeping the panel's internal container and scrollbars in the outer collection.

Definition

Namespace:Telerik.WinControls.UI

Assembly:Telerik.WinControls.UI.dll

Syntax:

C#
public class RadScrollablePanelControlCollection : Control.ControlCollection, IList, ICollection, IEnumerable, ICloneable

Inheritance: objectArrangedElementCollectionControl.ControlCollectionRadScrollablePanelControlCollection

Derived Classes: CollapsiblePanelControlsContainerControlsCollectionDataEntryPanelControlCollection

Implements: ICloneableICollectionIEnumerableIList

Inherited Members ArrangedElementCollection.Equals(object)ArrangedElementCollection.GetHashCode()ArrangedElementCollection.CopyTo(Array, int)ArrangedElementCollection.GetEnumerator()ArrangedElementCollection.IsReadOnlyArrangedElementCollection.Count...

Constructors

Creates a collection that hosts user controls in the specified scrollable panel's content container.

C#
public RadScrollablePanelControlCollection(RadScrollablePanel owner)
Parameters:ownerRadScrollablePanel

The panel whose hosted controls this collection manages.

Methods

Adds a non-internal control to the internal content container.

C#
public override void Add(Control value)
Parameters:valueControl

The control to add.

Exceptions: InvalidOperationException

The control is the panel's internal container or one of its scrollbars.

Overrides: Control.ControlCollection.Add(Control)

Removes all user controls from the internal content container without removing the panel's internal controls.

C#
public override void Clear()

Overrides: Control.ControlCollection.Clear()

Gets a control's index from the outer collection for internal controls or from the content container for non-internal controls.

C#
public override int GetChildIndex(Control value, bool throwException)
Parameters:valueControl

The control whose index is retrieved.

throwExceptionbool

true to preserve the underlying collection's missing-control exception behavior.

Returns:

int

The control's index in the collection that owns it.

Overrides: Control.ControlCollection.GetChildIndex(Control, bool)

Removes a non-internal control from the internal content container; internal panel controls are retained.

C#
public override void Remove(Control value)
Parameters:valueControl

The control to remove.

Overrides: Control.ControlCollection.Remove(Control)

Sets the index of an internal panel control in the outer collection or forwards a non-internal control to the content container.

C#
public override void SetChildIndex(Control value, int newIndex)
Parameters:valueControl

The control whose index is changed.

newIndexint

The requested index in the appropriate collection.

Overrides: Control.ControlCollection.SetChildIndex(Control, int)