Table of Contents

Class SortColumns

Namespace
Spire.Xls.Core.Spreadsheet.Sorting
Assembly
Spire.XLS.dll

Represents the sort column collection.

public class SortColumns : CollectionExtended<SortColumn>, IList<SortColumn>, ICollection<SortColumn>, IEnumerable<SortColumn>, IExcelApplication, ICloneParent, ISortColumns, IEnumerable
Inheritance
SortColumns
Implements
Inherited Members

Properties

Capacity

public int Capacity { get; set; }

Property Value

int

Count

public int Count { get; }

Property Value

int

this[int]

public SortColumn this[int fieldIndex] { get; }

Parameters

fieldIndex int

Property Value

SortColumn

Methods

Add(int, OrderBy)

Adds the item in the collection.

public SortColumn Add(int key, OrderBy orderBy)

Parameters

key int

Column Index to sort the data.

orderBy OrderBy

To order the sorted data.

Returns

SortColumn

Added sort column.

Add(int, SortComparsionType, OrderBy)

Adds the item in the collection.

public SortColumn Add(int key, SortComparsionType sortComparsionType, OrderBy orderBy)

Parameters

key int

Column Index to sort the data.

sortComparsionType SortComparsionType

Compare value type.

orderBy OrderBy

To order the sorted data.

Returns

SortColumn

Added sort column.

Add(int, string[])

Adds the item in the collection.

public SortColumn Add(int key, string[] customSortOrder)

Parameters

key int

Column Index to sort the data.

customSortOrder string[]

Custom order to order the sorted data.

Returns

SortColumn

Added sort column.

Clear()

public void Clear()

GetByIndex(int)

public SortColumn GetByIndex(int index)

Parameters

index int

Returns

SortColumn

GetEnumerator()

public IEnumerator GetEnumerator()

Returns

IEnumerator

Remove(SortColumn)

public void Remove(SortColumn sortColumn)

Parameters

sortColumn SortColumn

Remove(int)

Remvoes the Sort item in the collection.

public void Remove(int key)

Parameters

key int

RemoveAt(int)

public void RemoveAt(int index)

Parameters

index int