Represents a collection of SplitterItem objects in a RadSplitter control.
The SplitterItemsCollection class represents a collection of SplitterItem objects. The SplitterItem objects in turn represent panes items within a RadSplitter control.
- Use the this[int] to programmatically retrieve a single SplitterItem from the collection, using array notation.
- Use the Count property to determine the total number of panes in the collection.
- Use the Add(Control) method to add panes in the collection.
- Use the Remove(Control) method to remove panes from the collection.
Definition
Namespace:Telerik.Web.UI
Assembly:Telerik.Web.UI.dll
Syntax:
public class SplitterItemsCollection : ControlCollection, ICollection, IEnumerable, IStateManager
Inheritance: objectControlCollectionSplitterItemsCollection
Implements:
Inherited Members
Constructors
Initializes a new instance of the SplitterItemsCollection class.
public SplitterItemsCollection(SplitterItemsContainer container)
The container of the collection.
Use the constructor to create a new SplitterItemsCollection class.
Properties
Gets a SplitterItem at the specified index in the collection.
public SplitterItem this[int index] { get; }
The zero-based index of the SplitterItem to retrieve from the collection.
Use this indexer to get a SplitterItem from the collection at the specified index, using array notation.
Methods
Appends a SplitterItem to the end of the collection.
public void AddAt(int index, SplitterItem item, bool regenerateIndexes)
Removes all items from the collection.
public void Clear()
Use the Clear method to remove all items from the collection. The Count property is set to 0.
Determines whether the collection contains the specified
item.
public bool Contains(SplitterItem item)
A SplitterItem to search for in the collection.
Returns:true if the collection contains the specified item; otherwise, false.
Use the Contains method to determine whether the SplitterItem specified by the item parameter is in the collection.
Determines the index value that represents the position of the specified
item in the collection.
public int IndexOf(SplitterItem item)
A SplitterItem to search for in the collection.
Returns:The zero-based index position of the specified SplitterItem in the collection.
Use the IndexOf method to determine the index value of the SplitterItem specified by the item parameter in the collection. If an item with this criteria is not found in the collection, -1 is returned.
Inserts the specified SplitterItem in the collection at the specified index location.
public void Insert(int index, SplitterItem item)
The location in the collection to insert the SplitterItem.
itemSplitterItemThe SplitterItem to add to the collection.
Use the Insert method to add a SplitterItem to the collection at the index specified by the index parameter.
Removes the specified item from the collection.
public void Remove(SplitterItem item)
Use the Remove method to remove a SplitterItem from the collection.
Removes the SplitterItem at the specified index from the collection.
public void RemoveAt(int index)
The index of the SplitterItem to remove.
Use the RemoveAt method to remove the SplitterItem at the specified index from the collection.