New to Telerik UI for WinForms? Start a free 30-day trial

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:

C#
public class AggregateDescriptionsCollection : IPivotFieldDescriptionCollection, IList, ICollection, IEnumerable

Inheritance: objectAggregateDescriptionsCollection

Implements: ICollectionIEnumerableIListIPivotFieldDescriptionCollection

Constructors

Initializes a collection associated with the specified pivot grid element.

C#
public AggregateDescriptionsCollection(RadPivotGridElement owner)
Parameters:ownerRadPivotGridElement

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.

C#
public int Count { get; }

Gets whether this collection is read-only. This collection allows its contents to be changed.

C#
public bool IsReadOnly { get; }

Gets the pivot grid element that owns this collection.

C#
public RadPivotGridElement Owner { get; }

Implements: IPivotFieldDescriptionCollection.Owner

Gets or replaces the aggregate description at the specified position in the active list.

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

The zero-based position of the aggregate description.

Property Value:

The aggregate description at index.

Methods

Appends an aggregate description to the active list.

C#
public void Add(IAggregateDescription item)
Parameters:itemIAggregateDescription

The aggregate description to add.

Removes every aggregate description from the provider's settings, or clears the local cache when no provider is available.

C#
public void Clear()

Determines whether the active list contains the specified aggregate description.

C#
public bool Contains(IAggregateDescription item)
Parameters:itemIAggregateDescription

The aggregate description to locate.

Returns:

bool

true if the description is present; otherwise, false.

Copies the active aggregate descriptions into an array, starting at the specified index.

C#
public void CopyTo(IAggregateDescription[] array, int arrayIndex)
Parameters:arrayIAggregateDescription[]

The destination array.

arrayIndexint

The zero-based destination index.

Gets an enumerator over a snapshot of the current aggregate descriptions.

C#
public IEnumerator<IAggregateDescription> GetEnumerator()
Returns:

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.

C#
public int IndexOf(IAggregateDescription item)
Parameters:itemIAggregateDescription

The aggregate description to locate.

Returns:

int

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.

C#
public void Insert(int index, IAggregateDescription item)
Parameters:indexint

The zero-based insertion position.

itemIAggregateDescription

The aggregate description to insert.

Removes the specified aggregate description from the active list.

C#
public bool Remove(IAggregateDescription item)
Parameters:itemIAggregateDescription

The aggregate description to remove.

Returns:

bool

true if the description was found and removed; otherwise, false.

Removes the aggregate description at the specified position from the active list.

C#
public void RemoveAt(int index)
Parameters:indexint

The zero-based position of the aggregate description to remove.