TabPanelCollection
Provides ordered access to the TabPanel controls owned by a TabStripPanel.
Definition
Namespace:Telerik.WinControls.UI
Assembly:Telerik.WinControls.UI.dll
Syntax:
public class TabPanelCollection : IList, ICollection, IEnumerable
Inheritance: objectTabPanelCollection
Implements:
Constructors
Creates a collection backed by the specified tab-strip panel's child controls.
public TabPanelCollection(TabStripPanel owner)
The tab-strip panel that owns the collection.
Exceptions: ArgumentNullExceptionowner is null.
Properties
Gets the number of child controls owned by the tab strip.
public int Count { get; }
Implements:
Gets whether the collection is read-only; this collection allows changes.
public bool IsReadOnly { get; }
Implements:
Gets the panel at the specified position in the owning tab strip.
public virtual TabPanel this[int index] { get; }
The zero-based position of the panel.
Methods
Creates a panel with the specified name and text, then adds it to the end of the collection. The image index is not applied.
Creates a panel with the specified name and text, then adds it to the end of the collection. The image key is not applied.
Creates a tab panel with the specified text and adds it to the end of the collection.
Adds the panel to the end of the owning tab strip's child-control collection.
public void Add(TabPanel value)
The panel to add.
Exceptions: ArgumentNullExceptionvalue is null.
Adds each panel in the array to the end of the collection, preserving array order.
public void AddRange(TabPanel[] panels)
The panels to add.
Exceptions: ArgumentNullExceptionpanels is null or contains a null panel.
Removes all child controls from the owning tab strip.
public void Clear()
Implements:
Determines whether this collection contains the specified panel instance.
public bool Contains(TabPanel panel)
The panel to locate.
Returns:true when the panel is present.
Exceptions: ArgumentNullExceptionpanel is null.
Enumerates the tab panels in the owning strip's child-control order.
public IEnumerator GetEnumerator()
An enumerator over the tab panels.
Implements:
Finds the position of the specified panel instance.
public int IndexOf(TabPanel panel)
The panel to find.
Returns:The zero-based position, or -1 when the panel is not present.
Exceptions: ArgumentNullExceptionpanel is null.
Creates a named panel with the specified text, then inserts and selects it. The image index is not applied.
public void Insert(int index, string key, string text, int imageIndex)
The zero-based position at which to insert the panel.
keystringThe name assigned to the new panel.
textstringThe text assigned to the new panel.
imageIndexintAn image index accepted by the overload but not used.
Creates a named panel with the specified text, then inserts and selects it. The image key is not applied.
public void Insert(int index, string key, string text, string imageKey)
The zero-based position at which to insert the panel.
keystringThe name assigned to the new panel.
textstringThe text assigned to the new panel.
imageKeystringAn image key accepted by the overload but not used.
Creates a panel with the specified name and text, then inserts and selects it at the requested position.
Removes the panel from the owning tab strip.
public void Remove(TabPanel value)
The panel to remove.
Exceptions: ArgumentNullExceptionvalue is null.
Removes the panel at the specified position from the owning tab strip.
public void RemoveAt(int index)
The zero-based position of the panel to remove.
Implements:
Removes the panel with the specified name, using a case-insensitive lookup; does nothing when no panel matches.