Manages the tabs hosted by a RadTabbedFormControl. When an added or inserted tab has empty
Text, its name is used as the text, or a unique name and matching
Tab N text are generated.
Definition
Namespace:Telerik.WinControls.UI
Assembly:Telerik.WinControls.UI.dll
Syntax:
public class RadTabbedFormControlTabCollection : RadTabbedFormControlObject, IDisposable, IList, ICollection, IEnumerable
Inheritance: objectDisposableObjectRadTabbedFormControlObjectRadTabbedFormControlTabCollection
Implements:
Inherited Members
Constructors
Initializes a tab collection for the specified control.
public RadTabbedFormControlTabCollection(RadTabbedFormControl owner)
The control that will own the tabs.
Properties
Indicates the System.Windows.Forms.Control at the specified indexed location in the collection.
public RadTabbedFormControlTab this[int index] { get; set; }
The index of the control to retrieve from the control collection.
Property Value:The RadTabbedFormControlTab located at the specified index location within the control collection.
Exceptions: InvalidOperationExceptionThe indexer cannot be used to replace a tab.
Indicates a RadTabbedFormControlTab with the specified name in the collection.
public RadTabbedFormControlTab this[string name] { get; }
The name of the tab to retrieve from the control collection.
Property Value:The RadTabbedFormControlTab with the specified name within the RadTabbedFormControlCollection.
Methods
Adds the specified tab to the Tabs collection.
public void Add(RadTabbedFormControlTab item)
The RadTabbedFormControlTab to add to the control collection.
Sets the index of the specified child control in the collection to the specified index value.
public void ChangeIndex(RadTabbedFormControlTab tab, int newIndex)
The tab to move.
newIndexintThe zero-based position to assign.
Removes all tabs from the collection.
public void Clear()
Implements:
Checks for a particular tab if it is part of the collection.
public bool Contains(RadTabbedFormControlTab item)
The RadTabbedFormControlTab to check if contained.
Returns:True if the collection contains the tab; otherwise false.
Checks whether a tab name matches the specified name.
When ignoreCase is true, matching uses ordinal, case-insensitive comparison and accepts a name prefix.
Otherwise, the name must match exactly and is case-sensitive.
Copies the entire contents of this collection to a compatible one-dimensional System.Array, starting at the specified index of the target array.
public void CopyTo(RadTabbedFormControlTab[] array, int arrayIndex)
The one-dimensional System.Array that is the destination of the elements copied from the current collection. The array must have zero-based indexing.
arrayIndexintThe zero-based index in array at which copying begins.
Returns an enumerator that includes tab controls and skips other controls hosted by the owner.
public IEnumerator<RadTabbedFormControlTab> GetEnumerator()
IEnumerator<RadTabbedFormControlTab>
An enumerator over the tabs in collection order.
Retrieves the index of the specified tab in the tabs collection.
public int IndexOf(RadTabbedFormControlTab item)
The RadTabbedFormControlTab to locate in the collection.
Returns:A zero-based index value that represents the position of the specified RadTabbedFormControlTab in the RadTabbedFormControlCollection.
Inserts the specified item at a given index in the RadTabbedFormControlCollection.
public void Insert(int index, RadTabbedFormControlTab item)
The index at which the RadTabbedFormControlTab will be inserted.
itemRadTabbedFormControlTabThe RadTabbedFormControlTab to be inserted in the collection.
Removes the specified tab from the tabs collection.
public bool Remove(RadTabbedFormControlTab item)
The RadTabbedFormControlTab to remove from the RadTabbedFormControlCollection.
Returns:true after attempting removal; this does not indicate whether the tab was present.
Removes a RadTabbedFormControlTab from the collection at the specified indexed location.
public void RemoveAt(int index)
The index value of the RadTabbedFormControlTab to remove.
Implements:
Swaps the positions of the two tabs inside the RadTabbedFormControlCollection.
public void Swap(RadTabbedFormControlTab tab1, RadTabbedFormControlTab tab2)
The first tab to move.
tab2RadTabbedFormControlTabThe second tab to move.
Exceptions: ArgumentExceptionEither tab belongs to a different control.