Class
SpreadAutoFilter

Represents an auto-filter range applied to a worksheet with optional filter column definitions.

Definition

Namespace:Telerik.Documents.SpreadsheetStreaming

Assembly:Telerik.Documents.SpreadsheetStreaming.dll

Syntax:

cs-api-definition
public class SpreadAutoFilter

Inheritance: objectSpreadAutoFilter

Constructors

SpreadAutoFilter(int, int, int, int)

Initializes a new instance of the SpreadAutoFilter class with a range only (no filter columns).

Declaration

cs-api-definition
public SpreadAutoFilter(int fromRowIndex, int fromColumnIndex, int toRowIndex, int toColumnIndex)

Parameters

fromRowIndex

int

The start row index of the auto-filter range.

fromColumnIndex

int

The start column index of the auto-filter range.

toRowIndex

int

The end row index of the auto-filter range.

toColumnIndex

int

The end column index of the auto-filter range.

Exceptions

ArgumentOutOfRangeException

Thrown when any index is negative, toRowIndex exceeds the maximum Excel row, toColumnIndex exceeds the maximum Excel column, or the from-indices exceed the to-indices.

SpreadAutoFilter(int, int, int, int, IList<SpreadFilterColumn>)

Initializes a new instance of the SpreadAutoFilter class with a range and filter columns.

Declaration

cs-api-definition
public SpreadAutoFilter(int fromRowIndex, int fromColumnIndex, int toRowIndex, int toColumnIndex, IList<SpreadFilterColumn> filterColumns)

Parameters

fromRowIndex

int

The start row index of the auto-filter range.

fromColumnIndex

int

The start column index of the auto-filter range.

toRowIndex

int

The end row index of the auto-filter range.

toColumnIndex

int

The end column index of the auto-filter range.

filterColumns

IList<SpreadFilterColumn>

The filter column definitions. Can be null.

Exceptions

ArgumentOutOfRangeException

Thrown when any index is out of the valid Excel range.

ArgumentException

Thrown when a RelativeColumnIndex exceeds the auto-filter column span, or when two filter columns share the same RelativeColumnIndex.

Properties

FilterColumns

Gets the filter column definitions applied to specific columns within the auto-filter range.

Declaration

cs-api-definition
public IList<SpreadFilterColumn> FilterColumns { get; }

Property Value

IList<SpreadFilterColumn>

FromColumnIndex

Gets the start column index of the auto-filter range.

Declaration

cs-api-definition
public int FromColumnIndex { get; }

Property Value

int

FromRowIndex

Gets the start row index of the auto-filter range.

Declaration

cs-api-definition
public int FromRowIndex { get; }

Property Value

int

ToColumnIndex

Gets the end column index of the auto-filter range.

Declaration

cs-api-definition
public int ToColumnIndex { get; }

Property Value

int

ToRowIndex

Gets the end row index of the auto-filter range.

Declaration

cs-api-definition
public int ToRowIndex { get; }

Property Value

int