Spread Windows Forms 17
GrapeCity.Spreadsheet Assembly / GrapeCity.Spreadsheet.Commands Namespace / SortCommand Class / SortBy Method / SortBy(IWorksheet,Reference,Color) Method
The worksheet to sort.
The sorting range.
The cell text color to sort.


In This Topic
    SortBy(IWorksheet,Reference,Color) Method
    In This Topic
    Create sort command for sort by font color.
    Syntax
    'Declaration
     
    
    Public Overloads Shared Function SortBy( _
       ByVal worksheet As IWorksheet, _
       ByVal range As Reference, _
       ByVal color As Color _
    ) As SortCommand
    'Usage
     
    
    Dim worksheet As IWorksheet
    Dim range As Reference
    Dim color As Color
    Dim value As SortCommand
     
    value = SortCommand.SortBy(worksheet, range, color)

    Parameters

    worksheet
    The worksheet to sort.
    range
    The sorting range.
    color
    The cell text color to sort.
    See Also