Collection that stores group by expressions GridGroupByExpression
Definition
Namespace:Telerik.Web.UI
Assembly:Telerik.Web.UI.dll
Syntax:
public class GridGroupByExpressionCollection : CollectionBase, IList, ICollection, IEnumerable
Inheritance: objectCollectionBaseGridGroupByExpressionCollection
Implements:
Inherited Members
Constructors
Initializes a new instance of GridGroupByExpressionCollection.
public GridGroupByExpressionCollection()
Initializes a new instance of GridGroupByExpressionCollection containing any array of GridGroupByExpression objects.
public GridGroupByExpressionCollection(GridGroupByExpression[] value)
An array of GridGroupByExpression objects with which to intialize the collection
Initializes a new instance of GridGroupByExpressionCollection based on another GridGroupByExpressionCollection.
public GridGroupByExpressionCollection(GridGroupByExpressionCollection value)
A GridGroupByExpressionCollection from which the contents are copied
Properties
Represents the entry at the specified index of the GridGroupByExpression.
public GridGroupByExpression this[int index] { get; set; }
The zero-based index of the entry to locate in the collection.
Property Value:The entry at the specified index of the collection.
Exceptions: ArgumentOutOfRangeExceptionindex is outside the valid range of indexes for the collection.
Methods
Adds a GridGroupByExpression with the specified value to the GridGroupByExpressionCollection .
public int Add(GridGroupByExpression value)
The GridGroupByExpression to add.
Returns:The index at which the new element was inserted.
Parses value and adds a GridGroupByExpression to the GridGroupByExpressionCollection .
public int Add(string value)
The GridGroupByExpression string representation to add.
Returns:The index at which the new element was inserted.
Copies the elements of an array to the end of the GridGroupByExpressionCollection.
public void AddRange(GridGroupByExpression[] value)
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.
public void AddRange(GridGroupByExpressionCollection value)
A GridGroupByExpressionCollection containing the objects to add to the collection.
Gets a value indicating whether the GridGroupByExpressionCollection contains the specified GridGroupByExpression.
public bool Contains(GridGroupByExpression value)
The GridGroupByExpression to locate.
Returns: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.
public void CopyTo(GridGroupByExpression[] array, int index)
The one-dimensional Array that is the destination of the values copied from GridGroupByExpressionCollection .
indexintThe index in array where copying begins.
array is multidimensional.
-or-
The number of elements in the GridGroupByExpressionCollection is greater than the available space between array and the end of array.
array is null.
array is less than array"s lowbound.
Returns an enumerator that can iterate through the GridGroupByExpressionCollection .
public GridGroupByExpressionCollection.GridGroupByExpressionEnumerator GetEnumerator()
GridGroupByExpressionCollection.GridGroupByExpressionEnumerator
None.
Returns the index of a GridGroupByExpression in the GridGroupByExpressionCollection .
public int IndexOf(GridGroupByExpression value)
The GridGroupByExpression to locate.
Returns:The index of the GridGroupByExpression of value in the
GridGroupByExpressionCollection, if found; otherwise, -1.
Inserts a GridGroupByExpression into the GridGroupByExpressionCollection at the specified index.
public void Insert(int index, GridGroupByExpression value)
The zero-based index where value should be inserted.
Removes a specific GridGroupByExpression from the GridGroupByExpressionCollection .
public void Remove(GridGroupByExpression value)
The GridGroupByExpression to remove from the GridGroupByExpressionCollection .
Exceptions: ArgumentExceptionvalue is not found in the Collection.
Removes a specific GridGroupByExpression from the GridGroupByExpressionCollection . by provided expression string
public void Remove(string value)
The string expression to remove from the GridGroupByExpressionCollection .
Exceptions: ArgumentExceptionvalue is not found in the Collection.