sortcolumns-ag凯发旗舰厅
com.spire.xls.core.spreadsheet.sorting
class sortcolumns
java.lang.object
com.spire.ms.system.collections.collectionbase
com.spire.xls.core.spreadsheet.sorting.sortcolumns
- all implemented interfaces:
- com.spire.ms.system.collections.icollection, com.spire.ms.system.collections.ienumerable, java.lang.iterable
public class sortcolumns
- extends
represents the sort column collection.
constructor summary |
sortcolumns(java.lang.object parent,
ds)
|
sortcolumns
public sortcolumns(java.lang.object parent,
ds)
add
public sortcolumn add(int key,
sortcomparsiontype sortcomparsiontype,
orderby orderby)
- adds the item in the collection.
- parameters:
key
- column index to sort the data.sortcomparsiontype
- compare value type.orderby
- to order the sorted data.
- returns:
- added sort column.
add
public sortcolumn add(int key,
orderby orderby)
- adds the item in the collection.
- parameters:
key
- column index to sort the data.orderby
- to order the sorted data.
- returns:
- added sort column.
remove
public void remove(sortcolumn sortcolumn)
- removes the item in the collection.
- parameters:
sortcolumn
- sort column to remove from the collection.
remove
public void remove(int key)
- remvoes the sort item in the collection.
- parameters:
key
- field index to remove.
removeat
public void removeat(int index)
- overrides:
removeat
in class com.spire.ms.system.collections.collectionbase
- parameters:
index
-
getbyindex
public sortcolumn getbyindex(int index)
- returns a single filter object from a collection.
get
public sortcolumn get(int fieldindex)
- gets object at the special field.
- parameters:
fieldindex
- the integer offset of the field on which you want to base the filter
(from the left of the list; the leftmost field is field 0).
- returns:
- returens object.
clear
public void clear()
- overrides:
clear
in class com.spire.ms.system.collections.collectionbase
getcapacity
public int getcapacity()
- overrides:
getcapacity
in class com.spire.ms.system.collections.collectionbase
setcapacity
public void setcapacity(int value)
- overrides:
setcapacity
in class com.spire.ms.system.collections.collectionbase
getcount
public int getcount()