Spread Windows Forms 17
GrapeCity.Spreadsheet Assembly / GrapeCity.Spreadsheet Namespace / Sort Class / Apply Method
if set to true apply the sort logic in current range.
if set to true or not set, frozen rows will be sorted .


In This Topic
    Apply Method (Sort)
    In This Topic
    Sorts the range based on the currently applied sort states.
    Syntax
    'Declaration
     
    
    Public Function Apply( _
       Optional ByVal sorting As Boolean, _
       Optional ByVal sortFrozenRows As Nullable(Of Boolean), _
       Optional ByVal sortFrozenTraillingRows As Nullable(Of Boolean) _
    ) As ActionResult(Of Integer())
    'Usage
     
    
    Dim instance As Sort
    Dim sorting As Boolean
    Dim sortFrozenRows As Nullable(Of Boolean)
    Dim sortFrozenTraillingRows As Nullable(Of Boolean)
    Dim value As ActionResult(Of Integer())
     
    value = instance.Apply(sorting, sortFrozenRows, sortFrozenTraillingRows)

    Parameters

    sorting
    if set to true apply the sort logic in current range.
    sortFrozenRows
    if set to true or not set, frozen rows will be sorted .
    sortFrozenTraillingRows

    Return Value

    An array represents the order of sorted rows.
    See Also