Spread WPF 18
GrapeCity.Spreadsheet Namespace / ISortFields Interface / Add Method / Add(Int32,SortOn,SortOrder,SortDataOption) Method
Specifies a key value for the sort.
The field to sort on.
Specifies the sort order.
Specifies the data option.


In This Topic
    Add(Int32,SortOn,SortOrder,SortDataOption) Method
    In This Topic
    Creates a new sort field and returns an ISortField object.
    Syntax
    'Declaration
     
    Overloads Function Add( _
       ByVal key As Integer, _
       Optional ByVal sortOn As SortOn, _
       Optional ByVal order As SortOrder, _
       Optional ByVal dataOption As SortDataOption _
    ) As ISortField
    'Usage
     
    Dim instance As ISortFields
    Dim key As Integer
    Dim sortOn As SortOn
    Dim order As SortOrder
    Dim dataOption As SortDataOption
    Dim value As ISortField
     
    value = instance.Add(key, sortOn, order, dataOption)
    ISortField Add( 
       int key,
       SortOn sortOn,
       SortOrder order,
       SortDataOption dataOption
    )

    Parameters

    key
    Specifies a key value for the sort.
    sortOn
    The field to sort on.
    order
    Specifies the sort order.
    dataOption
    Specifies the data option.

    Return Value

    The new created ISortField object.
    See Also