SortRange.SortRange

SortRange constructor

Intializes a new instance of the SortRange class by specifing a worksheet range and sort orientation.

public SortRange(Worksheet worksheet, int startRow, int startColumn, int rows, int columns, 
    SortOrientation orientation, bool isCaseSensitive)
ParameterTypeDescription
worksheetWorksheetThe Worksheet that contains the range.
startRowInt32The start row of the range.
startColumnInt32The start column of the range.
rowsInt32The number of the rows.
columnsInt32The number of the columns
orientationSortOrientationThe sort orientation: top to bottom or left to right.
isCaseSensitiveBooleanDetermines whether the sort datas is case sensitive if datas are string

See Also