Skip to main content

ApiSortField

Represents the ApiSortField class.

note

This functionality is available in paid ONLYOFFICE Docs editions.

Properties

NameTypeDescription
KeyApiRange | nullReturns or sets the sort key range (the full table column).
OrderSortOrderReturns or sets the sort order.
ParentApiSortFieldsReturns the parent SortFields collection.
PrioritynumberReturns or sets the 1-based sort priority.
SortOnXlSortOnReturns or sets what value is used as the sort criteria.

Methods

MethodReturnsDescription
DeleteNoneRemoves this sort field from the collection.
GetKeyApiRange | nullReturns the sort key range (the full table column).
GetOrderSortOrderReturns the sort order: "xlAscending" or "xlDescending".
GetParentApiSortFieldsReturns the parent SortFields collection.
GetPrioritynumberReturns the 1-based priority of this sort field within the collection.
GetSortOnXlSortOnReturns the sort-on type: "xlSortOnValues", "xlSortOnCellColor", "xlSortOnFontColor", "xlSortOnIcon".
GetSortOnValueApiColor | nullReturns the value (color or null) by which this sort field is sorted.
ModifyKeyNoneChanges the sort key column.
SetOrderNoneSets the sort order.
SetPriorityNoneSets the 1-based priority of this sort field, repositioning it within the collection.
SetSortOnNoneSets the sort-on type.
SetSortOnColorNoneSets the color for color-based sorting.