Class
OlapGroupComparer

Used for IGroup comparison based on their Names.

Definition

Namespace:Telerik.Pivot.Core

Assembly:Telerik.Pivot.Core.dll

Syntax:

cs-api-definition
[DataContract]
public sealed class OlapGroupComparer : GroupComparer, INotifyPropertyChanged, ISupportInitialize, IServiceProvider, IEditable

Inheritance: objectCloneableSettingsNodeGroupComparerOlapGroupComparer

Implements: IEditableINotifyPropertyChangedIServiceProviderISupportInitialize

Inherited Members SettingsNode.BeginEdit()SettingsNode.BeginInit()SettingsNode.EndInit()SettingsNode.GetService(Type)SettingsNode.ParentSettingsNode.SettingsChangedSettingsNode.ServicesChangedSettingsNode.PropertyChangedCloneable.Clone()

Constructors

OlapGroupComparer()

Declaration

cs-api-definition
public OlapGroupComparer()

Methods

CloneCore(Cloneable)

Makes the instance a clone (deep copy) of the specified Cloneable.

Declaration

cs-api-definition
protected override void CloneCore(Cloneable source)

Parameters

source

Cloneable

The object to clone.

Overrides Cloneable.CloneCore(Cloneable)

Remarks

Notes to Inheritors If you derive from Cloneable, you may need to override this method to copy all properties. It is essential that all implementations call the base implementation of this method (if you don't call base you should manually copy all needed properties including base properties).

CompareGroups(IAggregateResultProvider, IGroup, IGroup, PivotAxis)

Compares two IGroups based on their SortKeys.

Declaration

cs-api-definition
public override int CompareGroups(IAggregateResultProvider results, IGroup left, IGroup right, PivotAxis axis)

Parameters

results

IAggregateResultProvider

The current aggregate results.

left

IGroup

The first IGroup to compare.

right

IGroup

The second IGroup to compare.

axis

PivotAxis

Identifies if the groups are in Rows or Columns.

Returns

int

A signed integer that indicates the relative values of x and y, as shown in the following table.

Value Meaning Less than zero x is less than y.

Zero x equals y.

Greater than zero x is greater than y.

Overrides GroupComparer.CompareGroups(IAggregateResultProvider, IGroup, IGroup, PivotAxis)

CreateInstanceCore()

When implemented in a derived class, creates a new instance of the Cloneable derived class.

Declaration

cs-api-definition
protected override Cloneable CreateInstanceCore()

Returns

Cloneable

New instance for cloning.

Overrides Cloneable.CreateInstanceCore()

Remarks

Do not call this method directly (except when calling base in an implementation). This method is called internally by the Clone() method whenever a new instance of the Cloneable is created. Notes to Inheritors. Every Cloneable derived class must implement this method. A typical implementation is to simply call the default constructor and return the result.