[]
        
(Showing Draft Content)

GrapeCity.Spreadsheet.ISort.SetRange

SetRange Method

SetRange(Reference)

Sets the range over which the sort occurs.

Declaration
void SetRange(Reference rng)
Sub SetRange(rng As Reference)
Parameters
Type Name Description
Reference rng

Specifies the range over which the sort represented by the ISort object occurs.

Remarks

SetRange(Reference) can only be used when applying a sort to a sheet range, and cannot be used if the range is within a table.

SetRange(string)

Sets the range over which the sort occurs.

Declaration
void SetRange(string rng)
Sub SetRange(rng As String)
Parameters
Type Name Description
string rng

Specifies the range over which the sort represented by the ISort object occurs.

Remarks

SetRange(Reference) can only be used when applying a sort to a sheet range, and cannot be used if the range is within a table.

SetRange(IRange)

Sets the range over which the sort occurs.

Declaration
void SetRange(IRange rng)
Sub SetRange(rng As IRange)
Parameters
Type Name Description
IRange rng

Specifies the range over which the sort represented by the ISort object occurs.

Remarks

SetRange(Reference) can only be used when applying a sort to a sheet range, and cannot be used if the range is within a table.