Class PivotEngine.CalcSortComparer
This class used for sorting the Pivoted row/column.
Inheritance
System.Object
PivotEngine.CalcSortComparer
Implements
System.Collections.Generic.IComparer<PivotEngine.SortKeys>
Namespace: Syncfusion.XlsIO.Implementation.PivotAnalysis
Assembly: Syncfusion.XlsIO.Portable.dll
Syntax
public class CalcSortComparer : Object, IComparer<PivotEngine.SortKeys>
Constructors
CalcSortComparer(List<ListSortDirection>)
Initializes a new instance of the PivotEngine.CalcSortComparer class.
Declaration
public CalcSortComparer(List<ListSortDirection> sortDirs)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.Generic.List<System.ComponentModel.ListSortDirection> | sortDirs | The sort direction. |
Methods
Compare(PivotEngine.SortKeys, PivotEngine.SortKeys)
Compares the sort direction of the PivotFields using key.
Declaration
public int Compare(PivotEngine.SortKeys x, PivotEngine.SortKeys y)
Parameters
Type | Name | Description |
---|---|---|
PivotEngine.SortKeys | x | The key to compare sort directions. |
PivotEngine.SortKeys | y | The key to compare sort directions. |
Returns
Type |
---|
System.Int32 |
Implements
System.Collections.Generic.IComparer<>