New to Telerik UI for WinFormsStart a free 30-day trial

Definition

Namespace:Telerik.WinControls.Data

Assembly:Telerik.WinControls.dll

Type Parameters:

T

Syntax:

C#
public class Group<T> : IReadOnlyCollection<T>, IEnumerable where T : IDataItem

Inheritance: objectGroup<T>

Derived Classes: DataItemGroup<TDataItem>

Implements: IEnumerableIReadOnlyCollection<T>

Constructors

C#
public Group(object key, Group<T> parent)
Parameters:keyobjectparentGroup<T>
C#
public Group(object key)
Parameters:keyobject

Properties

Gets the groups.

C#
public virtual GroupCollection<T> Groups { get; }
Property Value:

The groups.

Gets or sets the header.

C#
public virtual string Header { get; set; }
Property Value:

The header.

Gets the item count.

C#
public virtual int ItemCount { get; }
Property Value:

The item count.

Items

IList<T>

C#
protected virtual IList<T> Items { get; }

Gets the key of the group.

C#
public object Key { get; }
Property Value:

The key.

Get the zero-based depth of the Group

C#
public int Level { get; }

Gets the parent.

C#
public virtual Group<T> Parent { get; }
Property Value:

The parent.

Gets the item at the specified index.

C#
public virtual T this[int index] { get; }
Parameters:indexint

Implements: IReadOnlyCollection<T>.this[int]

Methods

Determines whether [contains] [the specified item].

C#
public virtual bool Contains(T item)
Parameters:itemT

The item.

Returns:

bool

true if [contains] [the specified item]; otherwise, false.

Implements: IReadOnlyCollection<T>.Contains(T)

Copies to.

C#
public virtual void CopyTo(T[] array, int index)
Parameters:arrayT[]

The array.

indexint

The index.

Implements: IReadOnlyCollection<T>.CopyTo(T[], int)

Evaluates the specified expression.

C#
public object Evaluate(string expression)
Parameters:expressionstring

The expression.

Returns:

object

C#
public virtual IEnumerator<T> GetEnumerator()
Returns:

IEnumerator<T>

Indexes the of.

C#
public virtual int IndexOf(T item)
Parameters:itemT

The item.

Returns:

int

Implements: IReadOnlyCollection<T>.IndexOf(T)