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

Routes controls added to a RadCollapsiblePanel into its hosted content container.

Definition

Namespace:Telerik.WinControls.UI

Assembly:Telerik.WinControls.UI.dll

Syntax:

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

Inheritance: objectArrangedElementCollectionControl.ControlCollectionRadCollapsiblePanelControlsCollection

Implements: ICloneableICollectionIEnumerableIList

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

Constructors

Creates the control collection for the specified collapsible panel.

C#
public RadCollapsiblePanelControlsCollection(RadCollapsiblePanel owner)
Parameters:ownerRadCollapsiblePanel

The panel whose child controls are managed by this collection.

Methods

Adds a child control to the hosted content container; the panel's internal container is not added again.

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

The control to add.

Overrides: Control.ControlCollection.Add(Control)

Removes the hosted child controls while retaining the panel's internal container.

C#
public override void Clear()

Overrides: Control.ControlCollection.Clear()

Gets a hosted control's index from the content collection, or delegates the internal container to the base collection.

C#
public override int GetChildIndex(Control child, bool throwException)
Parameters:childControl

The control whose index is requested.

throwExceptionbool

Whether to throw if the control is not in the collection.

Returns:

int

The control's index in the appropriate collection.

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

Sets a hosted control's index in the content collection, or delegates the internal container to the base collection.

C#
public override void SetChildIndex(Control child, int newIndex)
Parameters:childControl

The control whose index is changed.

newIndexint

The new index for the control.

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