• DR-IT Software
  • Products
  • Documentation
  • Product page
  • Examples
  • API reference
  • Support
Show / Hide Table of Contents

Class SortState

Represents the sort state class used by the spreadsheet model.

Inheritance
object
SortState
Inherited Members
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
Namespace: DRIT.Spreadsheet
Assembly: DRIT.Spreadsheet.dll
Syntax
public class SortState

Constructors

SortState()

Initializes a new SortState for the supplied workbook data.

Declaration
public SortState()

SortState(Range)

Initializes a new SortState for the supplied workbook data.

Declaration
public SortState(Range range)
Parameters
Type Name Description
Range range

Properties

ColumnSort

Exposes the column sort associated with SortState.

Declaration
public bool ColumnSort { get; set; }
Property Value
Type Description
bool

IsCaseSensitive

Indicates whether the case sensitive condition is true for SortState.

Declaration
public bool IsCaseSensitive { get; set; }
Property Value
Type Description
bool

Range

Exposes the range associated with SortState.

Declaration
public Range Range { get; set; }
Property Value
Type Description
Range

Reference

Exposes the reference associated with SortState.

Declaration
public string Reference { get; set; }
Property Value
Type Description
string

SortByColumn

Exposes the sort by column associated with SortState.

Declaration
public bool SortByColumn { get; set; }
Property Value
Type Description
bool

The sort by column returned by the operation.

SortConditions

Exposes the sort conditions associated with SortState.

Declaration
public ObservableCollection<SortCondition> SortConditions { get; }
Property Value
Type Description
ObservableCollection<SortCondition>

The sort conditions returned by the operation.

SortMethod

Exposes the sort method associated with SortState.

Declaration
public SortMethod SortMethod { get; set; }
Property Value
Type Description
SortMethod

Methods

AddCondition(int, bool)

Adds a sort condition for the specified column index and returns this SortState for fluent chaining.

Declaration
public SortState AddCondition(int index, bool descending)
Parameters
Type Name Description
int index

Zero-based index of the column (or row when SortByColumn is true) within the sort range.

bool descending

When true sort descending; otherwise ascending.

Returns
Type Description
SortState

Sort()

Exposes the sort associated with SortState.

Declaration
public void Sort()
Back to top

DR-IT Software documentation

DR-IT Software · Products · Documentation index · Product page · Downloads · Support · Licensing

Generated by DocFX