Click or drag to resize
KaxListViewSortExpressionCollection Methods

The KaxListViewSortExpressionCollection type exposes the following members.

Methods
  Name Description
Public method Add
Adds a KaxListViewSortExpression to the collection.
Public method AddAt
Adds a KaxListViewSortExpression to the collection at the specified index.
Public method AddSortExpression(String)
If AllowMultiFieldSorting is true adds the sortExpression in the collection. Else any other expression previously stored in the collection wioll be removed
Public method AddSortExpression(KaxListViewSortExpression)
If AllowMultiFieldSorting is true adds the sortExpression in the collection. Else any other expression previously stored in the collection wioll be removed
Public method ChangeSortOrder
Adds the sort field (expression parameter) if the collection does not alreqady contain the field. Else the sort order of the field will be inverted. The default change order is Asc -> Desc -> No Sort. The No-Sort state can be controlled using AllowNaturalSort property
Public method Clear
Clears the KaxListViewSortExpressionCollection of all items.
Public method ContainsExpression
Returns true or false depending on whether the specified sorting expression exists in the collection. Takes a string parameter.
Public method ContainsSortExpression
Returns true or false depending on whether the specified sorting expression exists in the collection. Takes a KaxListViewSortExpression parameter.
Public method GetEnumerator
Returns an enumerator that iterates through the KaxListViewSortExpressionCollection.
Public method GetExpression
Find a SortExpression in the collection if it contains any with sort field = expression
Public method GetSortString
Get a comma separated list of sort fields and sort-order, in the same format used by DataView.Sort string expression. Returns null (Nothing) if there are no sort expressions in the collection
Public method IndexOf
Searches for the specified KaxListViewSortExpression and returns the zero-based index of the first occurrence within the entire KaxListViewSortExpressionCollection.
Public method RemoveSortExpression
Removes the specified KaxListViewSortExpression from the collection.
Top
See Also