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

Maintains the relationship between child TabPanel controls and their tab-strip items.

Definition

Namespace:Telerik.WinControls.UI

Assembly:Telerik.WinControls.UI.dll

Syntax:

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

Inheritance: objectArrangedElementCollectionControl.ControlCollectionTabStripPanel.ControlCollection

Implements: ICloneableICollectionIEnumerableIList

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

Constructors

Creates a child-control collection for the specified tab-strip panel.

C#
public ControlCollection(TabStripPanel owner)
Parameters:ownerTabStripPanel

The tab-strip panel whose controls this collection manages.

Methods

Adds a TabPanel, creates its associated tab item, and synchronizes selection when the owner has a handle.

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

The panel to add.

Exceptions: ArgumentException

value is not a TabPanel.

Overrides: Control.ControlCollection.Add(Control)

Removes a contained panel and its tab item, then updates selection when the owner has a handle.

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

The panel to remove.

Overrides: Control.ControlCollection.Remove(Control)

Reorders the corresponding tab item when a panel's child index changes.

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

The child panel to reposition.

newIndexint

The new zero-based child index.

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