Group<T>
Represents a node in a data-item grouping hierarchy, with a key, optional parent, and virtual access to its items and child groups.
Definition
Namespace:Telerik.WinControls.Data
Assembly:Telerik.WinControls.dll
Type Parameters:
T
The data-item type represented by the group.
Syntax:
public class Group<T> : IReadOnlyCollection<T>, IEnumerable where T : IDataItem
Inheritance: objectGroup<T>
Derived Classes:
Implements:
Constructors
Initializes a root group identified by the specified key.
Properties
Gets the groups.
public virtual GroupCollection<T> Groups { get; }
The groups.
Gets or sets the header.
public virtual string Header { get; set; }
The header.
Gets the item count.
public virtual int ItemCount { get; }
The item count.
Items
IList<T>
Provides the backing items to grouping code and derived group types.
protected virtual IList<T> Items { get; }
The base implementation returns null; concrete groups that contain items override this property.
Gets the parent.
public virtual Group<T> Parent { get; }
The parent.
Methods
Determines whether [contains] [the specified item].
public virtual bool Contains(T item)
The item.
Returns:true if [contains] [the specified item]; otherwise, false.
Implements:
Copies this group's items into an array beginning at the specified index.
public virtual void CopyTo(T[] array, int index)
The destination array.
indexintThe zero-based destination index at which copying begins.
Implements:
Enumerates the items contained directly in this group.
public virtual IEnumerator<T> GetEnumerator()
IEnumerator<T>
An enumerator over this group's items.
Indexes the of.