New to Telerik UI for ASP.NET AJAX? Start a free 30-day trial

Collection that stores group by expressions GridGroupByExpression

Definition

Constructors

Initializes a new instance of GridGroupByExpressionCollection.

C#
public GridGroupByExpressionCollection()

Initializes a new instance of GridGroupByExpressionCollection containing any array of GridGroupByExpression objects.

C#
public GridGroupByExpressionCollection(GridGroupByExpression[] value)
Parameters:valueGridGroupByExpression[]

An array of GridGroupByExpression objects with which to intialize the collection

Initializes a new instance of GridGroupByExpressionCollection based on another GridGroupByExpressionCollection.

C#
public GridGroupByExpressionCollection(GridGroupByExpressionCollection value)
Parameters:valueGridGroupByExpressionCollection

A GridGroupByExpressionCollection from which the contents are copied

Properties

Represents the entry at the specified index of the GridGroupByExpression.

C#
public GridGroupByExpression this[int index] { get; set; }
Parameters:indexint

The zero-based index of the entry to locate in the collection.

Property Value:

The entry at the specified index of the collection.

Exceptions: ArgumentOutOfRangeException

index is outside the valid range of indexes for the collection.

Methods

Adds a GridGroupByExpression with the specified value to the GridGroupByExpressionCollection .

C#
public int Add(GridGroupByExpression value)
Parameters:valueGridGroupByExpression

The GridGroupByExpression to add.

Returns:

int

The index at which the new element was inserted.

C#
public int Add(string value)
Parameters:valuestring

The GridGroupByExpression string representation to add.

Returns:

int

The index at which the new element was inserted.

Copies the elements of an array to the end of the GridGroupByExpressionCollection.

C#
public void AddRange(GridGroupByExpression[] value)
Parameters:valueGridGroupByExpression[]

An array of type GridGroupByExpression containing the objects to add to the collection.

Adds the contents of another GridGroupByExpressionCollection to the end of the collection.

C#
public void AddRange(GridGroupByExpressionCollection value)
Parameters:valueGridGroupByExpressionCollection

A GridGroupByExpressionCollection containing the objects to add to the collection.

Gets a value indicating whether the GridGroupByExpressionCollection contains the specified GridGroupByExpression.

C#
public bool Contains(GridGroupByExpression value)
Parameters:valueGridGroupByExpression

The GridGroupByExpression to locate.

Returns:

bool

true if the GridGroupByExpression is contained in the collection; otherwise, false.

Copies the GridGroupByExpressionCollection values to a one-dimensional Array instance at the specified index.

C#
public void CopyTo(GridGroupByExpression[] array, int index)
Parameters:arrayGridGroupByExpression[]

The one-dimensional Array that is the destination of the values copied from GridGroupByExpressionCollection .

indexint

The index in array where copying begins.

Exceptions: ArgumentException

array is multidimensional.

-or-

The number of elements in the GridGroupByExpressionCollection is greater than the available space between array and the end of array.

ArgumentNullException

array is null.

ArgumentOutOfRangeException

array is less than array"s lowbound.

Returns an enumerator that can iterate through the GridGroupByExpressionCollection .

C#
public GridGroupByExpressionCollection.GridGroupByExpressionEnumerator GetEnumerator()
Returns:

GridGroupByExpressionCollection.GridGroupByExpressionEnumerator

None.

C#
public int IndexOf(GridGroupByExpression value)
Parameters:valueGridGroupByExpression

The GridGroupByExpression to locate.

Returns:

int

The index of the GridGroupByExpression of value in the GridGroupByExpressionCollection, if found; otherwise, -1.

Inserts a GridGroupByExpression into the GridGroupByExpressionCollection at the specified index.

C#
public void Insert(int index, GridGroupByExpression value)
Parameters:indexint

The zero-based index where value should be inserted.

valueGridGroupByExpression
C#
protected override void OnInsertComplete(int index, object value)
Parameters:indexintvalueobject

Overrides: CollectionBase.OnInsertComplete(int, object)

C#
protected override void OnRemoveComplete(int index, object value)
Parameters:indexintvalueobject

Overrides: CollectionBase.OnRemoveComplete(int, object)

C#
public void Remove(GridGroupByExpression value)
Parameters:valueGridGroupByExpression

The GridGroupByExpression to remove from the GridGroupByExpressionCollection .

Exceptions: ArgumentException

value is not found in the Collection.

Removes a specific GridGroupByExpression from the GridGroupByExpressionCollection . by provided expression string

C#
public void Remove(string value)
Parameters:valuestring

The string expression to remove from the GridGroupByExpressionCollection .

Exceptions: ArgumentException

value is not found in the Collection.