Class GridViewTemplateCollection
Represents a collection that stores the GridViewTemplates
Inheritance
Inherited Members
Namespace: Telerik.WinControls.UI
Assembly: Telerik.WinControls.GridView.dll
Syntax
public class GridViewTemplateCollection : ObservableCollection<GridViewTemplate>, IList<GridViewTemplate>, ICollection<GridViewTemplate>, IReadOnlyList<GridViewTemplate>, IReadOnlyCollection<GridViewTemplate>, IEnumerable<GridViewTemplate>, IList, ICollection, IEnumerable, INotifyCollectionChanged, INotifyCollectionChanging, INotifyPropertyChanged, INotifyPropertyChangingEx
Constructors
GridViewTemplateCollection(GridViewTemplate)
Initializes a new instance of the GridViewTemplateCollection class.
Declaration
public GridViewTemplateCollection(GridViewTemplate owner)
Parameters
GridViewTemplate
owner
The owner. |
Properties
Owner
Gets the owner.
Declaration
public GridViewTemplate Owner { get; }
Property Value
GridViewTemplate
The owner. |
Methods
AddRange(GridViewTemplate[])
Adds the GridViewTemplate contained in the specified list to the collection.
Declaration
public void AddRange(params GridViewTemplate[] gridViewTemplates)
Parameters
GridViewTemplate[]
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
System.String
caption
The caption. |
Returns
GridViewTemplate[]
|
InsertItem(Int32, GridViewTemplate)
Inserts the item.
Declaration
protected override void InsertItem(int index, GridViewTemplate item)
Parameters
System.Int32
index
The index. |
GridViewTemplate
item
The item. |
Overrides
RemoveItem(Int32)
Removes the element at the specified index of the System.Collections.ObjectModel.Collection<T>.
Declaration
protected override void RemoveItem(int index)
Parameters
System.Int32
index
The zero-based index of the element to remove. |
Overrides
Exceptions
System.ArgumentOutOfRangeException
|
SetItem(Int32, GridViewTemplate)
Sets the item.
Declaration
protected override void SetItem(int index, GridViewTemplate item)
Parameters
System.Int32
index
The index. |
GridViewTemplate
item
The item. |