Provides the aggregate descriptions owned by a pivot grid. Operations use the data provider's aggregate settings when available and otherwise use a local cached list.
Definition
Namespace:Telerik.WinControls.UI
Assembly:Telerik.WinControls.PivotGrid.dll
Syntax:
public class AggregateDescriptionsCollection : IPivotFieldDescriptionCollection, IList, ICollection, IEnumerable
Inheritance: objectAggregateDescriptionsCollection
Implements:
Constructors
Initializes a collection associated with the specified pivot grid element.
public AggregateDescriptionsCollection(RadPivotGridElement owner)
The pivot grid element whose aggregate descriptions this collection exposes.
Properties
Gets the number of descriptions in the provider's settings, or in the local cache when no provider is available.
public int Count { get; }
Gets whether this collection is read-only. This collection allows its contents to be changed.
public bool IsReadOnly { get; }
Gets the pivot grid element that owns this collection.
public RadPivotGridElement Owner { get; }
Implements:
Gets or replaces the aggregate description at the specified position in the active list.
public IAggregateDescription this[int index] { get; set; }
The zero-based position of the aggregate description.
Property Value:The aggregate description at index.
Methods
Appends an aggregate description to the active list.
public void Add(IAggregateDescription item)
The aggregate description to add.
Removes every aggregate description from the provider's settings, or clears the local cache when no provider is available.
public void Clear()
Determines whether the active list contains the specified aggregate description.
public bool Contains(IAggregateDescription item)
The aggregate description to locate.
Returns:Copies the active aggregate descriptions into an array, starting at the specified index.
public void CopyTo(IAggregateDescription[] array, int arrayIndex)
The destination array.
arrayIndexintThe zero-based destination index.
Gets an enumerator over a snapshot of the current aggregate descriptions.
public IEnumerator<IAggregateDescription> GetEnumerator()
IEnumerator<IAggregateDescription>
An enumerator over a copy of the descriptions in the active list.
Finds an item's position in the provider's aggregate settings, or in the local cache when no provider is available.
public int IndexOf(IAggregateDescription item)
The aggregate description to locate.
Returns:The zero-based index of item, or -1 if it is not present.
Inserts an aggregate description into the provider's settings, or into the local cache when no provider is available.
public void Insert(int index, IAggregateDescription item)
The zero-based insertion position.
itemIAggregateDescriptionThe aggregate description to insert.
Removes the specified aggregate description from the active list.
public bool Remove(IAggregateDescription item)
The aggregate description to remove.
Returns:true if the description was found and removed; otherwise, false.
Removes the aggregate description at the specified position from the active list.
public void RemoveAt(int index)
The zero-based position of the aggregate description to remove.