RadTabCollection
A collection of RadTab objects in a RadTabStrip control.
The RadTabCollection class represents a collection of RadTab objects.
- Use the this[int] to programmatically retrieve a single RadTab from the collection, using array notation.
- Use the Count property to determine the total number of menu items in the collection.
- Use the Add(RadTab) method to add tabs in the collection.
- Use the Remove(RadTab) method to remove tabs from the collection.
Definition
Namespace:Telerik.Web.UI
Assembly:Telerik.Web.UI.dll
Syntax:
public class RadTabCollection : ControlItemCollection, IList, ICollection, IStateManager, IEnumerable<RadTab>, IEnumerable
Inheritance: objectStateManagedCollectionControlItemCollectionRadTabCollection
Implements:
Inherited Members
Constructors
Initializes a new instance of the RadTabCollection class.
Properties
Gets the RadTab object at the specified index in the current RadTabCollection.
public RadTab this[int index] { get; set; }
The zero-based index of the RadTab to retrieve.
Property Value:The RadTab at the specified index in the current RadTabCollection.
Methods
Appends the specified RadTab object to the end of the current RadTabCollection.
public void Add(RadTab tab)
The RadTab to append to the end of the current RadTabCollection.
Appends the specified array of RadTab objects to the end of the current RadTabCollection.
public void AddRange(RadTab[] tabs)
tabs
RadTab[]
The array of <xref href="Telerik.Web.UI.RadTab?text=RadTab" data-throw-if-not-resolved="false"></xref> o append to the end of the current
Returns the first RadTab that matches the conditions defined by the specified predicate. The predicate should returns a boolean value.
Searches the RadTabStrip control for the first RadTab whose Text property is equal to the specified value.
public RadTab FindTabByText(string text, bool ignoreCase)
The value to search for.
ignoreCaseboolA Boolean indicating a case-sensitive or insensitive comparison (true indicates a case-insensitive comparison).
Returns:A RadTab whose Text property is equal to the specified value. If a tab is not found, null (Nothing in Visual Basic) is returned.
Searches the RadTabStrip control for the first RadTab whose Value property is equal to the specified value.
public RadTab FindTabByValue(string value, bool ignoreCase)
The value to search for.
ignoreCaseboolA Boolean indicating a case-sensitive or insensitive comparison (true indicates a case-insensitive comparison).
Returns:A RadTab whose Value property is equal to the specifed value. If a tab is not found, null (Nothing in Visual Basic) is returned.
Determines the index of the specified RadTab object in the collection.
public int IndexOf(RadTab tab)
The RadTab to locate.
Returns:The zero-based index of tab within the current RadTabCollection, if found; otherwise, -1.
Removes the specified RadTab object from the current RadTabCollection.
Removes the RadTab object at the specified index from the current RadTabCollection.