ClassGridViewTemplateCollection
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
GridViewTemplateCollection(GridViewTemplate)
Initializes a new instance of the GridViewTemplateCollection class.
Declaration
public GridViewTemplateCollection(GridViewTemplate owner)
Parameters
owner
The owner.
Properties
Owner
Gets the owner.
Declaration
public GridViewTemplate Owner { get; }
Property Value
The owner.
Methods
AddRange(params GridViewTemplate[])
Adds the GridViewTemplate contained in the specified list to the collection.
Declaration
public void AddRange(params GridViewTemplate[] gridViewTemplates)
Parameters
gridViewTemplates
The templates to add.
ClearItems()
Overridden. Removes all items from the collection.
Declaration
protected override void ClearItems()
Overrides
GetTemplateByCaption(string)
Gets the template by caption.
Declaration
public GridViewTemplate[] GetTemplateByCaption(string caption)
Parameters
caption
The caption.
Returns
InsertItem(int, GridViewTemplate)
Inserts the item.
Declaration
protected override void InsertItem(int index, GridViewTemplate item)
Parameters
index
The index.
item
The item.
Overrides
RemoveItem(int)
Removes the element at the specified index of the Collection<T>.
Declaration
protected override void RemoveItem(int index)
Parameters
index
The zero-based index of the element to remove.
Exceptions
index is less than zero.-or-index is equal
to or greater than Count.
Overrides
SetItem(int, GridViewTemplate)
Sets the item.
Declaration
protected override void SetItem(int index, GridViewTemplate item)
Parameters
index
The index.
item
The item.
Overrides