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

Provides the column-group descriptions owned by a pivot grid. Operations use the data provider's column-group settings when available and otherwise use a local cached list.

Definition

Namespace:Telerik.WinControls.UI

Assembly:Telerik.WinControls.PivotGrid.dll

Syntax:

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

Inheritance: objectColumnGroupDescriptionCollection

Implements: ICollectionIEnumerableIListIPivotFieldDescriptionCollection

Constructors

Initializes a collection associated with the specified pivot grid element.

C#
public ColumnGroupDescriptionCollection(RadPivotGridElement owner)
Parameters:ownerRadPivotGridElement

The pivot grid element whose column-group 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 group description at the specified position in the active list.

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

The zero-based position of the group description.

Property Value:

The group description at index.

Methods

Appends a group description to the active list.

C#
public void Add(IGroupDescription item)
Parameters:itemIGroupDescription

The group description to add.

Removes every column-group 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 group description.

C#
public bool Contains(IGroupDescription item)
Parameters:itemIGroupDescription

The group description to locate.

Returns:

bool

true if the description is present; otherwise, false.

Copies the active column-group descriptions into an array, starting at the specified index.

C#
public void CopyTo(IGroupDescription[] array, int arrayIndex)
Parameters:arrayIGroupDescription[]

The destination array.

arrayIndexint

The zero-based destination index.

Gets an enumerator over a snapshot of the current column-group descriptions.

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

IEnumerator<IGroupDescription>

An enumerator over a copy of the descriptions in the active list.

Finds an item's position in the provider's column-group settings, or in the local cache when no provider is available.

C#
public int IndexOf(IGroupDescription item)
Parameters:itemIGroupDescription

The group description to locate.

Returns:

int

The zero-based index of item, or -1 if it is not present.

Inserts a group description into the provider's settings, or into the local cache when no provider is available.

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

The zero-based insertion position.

itemIGroupDescription

The group description to insert.

Removes the specified group description from the active list.

C#
public bool Remove(IGroupDescription item)
Parameters:itemIGroupDescription

The group description to remove.

Returns:

bool

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

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

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

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