DataSorterAddKey Method (Int32, SortOnType, SortOrder, Object)

Adds sorted column index and sort order with custom sort list.

Namespace:  Aspose.Cells
Assembly:  Aspose.Cells (in Aspose.Cells.dll) Version: 20.9.0.0 (20.9)
Syntax
public void AddKey(
	int key,
	SortOnType type,
	SortOrder order,
	Object customList
)

Parameters

key
Type: SystemInt32
The sorted column index(absolute position, column A is 0, B is 1, ...)
type
Type: Aspose.CellsSortOnType
The sorted value type.
order
Type: Aspose.CellsSortOrder
The sort order.
customList
Type: SystemObject
The custom sort list.
Remarks
If type is SortOnType.CellColor or SortOnType.FontColor, the customList is Color.
See Also