Represents a collection that stores the GridViewTemplates
Definition
Namespace:Telerik.WinControls.UI
Assembly:Telerik.WinControls.GridView.dll
Syntax:
public class GridViewTemplateCollection : ObservableCollection<GridViewTemplate>, IList, ICollection, IEnumerable, INotifyCollectionChanged, INotifyCollectionChanging, INotifyPropertyChanged, INotifyPropertyChangingEx
Inheritance: objectCollection<GridViewTemplate>ObservableCollection<GridViewTemplate>GridViewTemplateCollection
Implements:
Inherited Members
Constructors
Initializes a new instance of the GridViewTemplateCollection class.
public GridViewTemplateCollection(GridViewTemplate owner)
The owner.
Properties
Gets the owner.
public GridViewTemplate Owner { get; }
The owner.
Methods
Adds the GridViewTemplate contained in the specified list to the collection.
public void AddRange(params GridViewTemplate[] gridViewTemplates)
The templates to add.
Overridden. Removes all items from the collection.
protected override void ClearItems()
Overrides:
Gets the template by caption.
public GridViewTemplate[] GetTemplateByCaption(string caption)
The caption.
Returns:Inserts the item.
protected override void InsertItem(int index, GridViewTemplate item)
The index.
itemGridViewTemplateThe item.
Overrides:
Removes the element at the specified index of the Collection<T>.
protected override void RemoveItem(int index)
The zero-based index of the element to remove.
Exceptions: ArgumentOutOfRangeExceptionindex is less than zero.-or-index is equal
to or greater than Count.
Overrides:
Sets the item.
protected override void SetItem(int index, GridViewTemplate item)
The index.
itemGridViewTemplateThe item.
Overrides: