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:
public class SpreadAutoFilter
Inheritance: objectSpreadAutoFilter
Constructors
Initializes a new instance of the SpreadAutoFilter class with a range and filter columns.
public SpreadAutoFilter(int fromRowIndex, int fromColumnIndex, int toRowIndex, int toColumnIndex, IList<SpreadFilterColumn> filterColumns)
The start row index of the auto-filter range.
fromColumnIndexintThe start column index of the auto-filter range.
toRowIndexintThe end row index of the auto-filter range.
toColumnIndexintThe end column index of the auto-filter range.
filterColumnsIList<SpreadFilterColumn>The filter column definitions. Can be null.
Exceptions:Thrown when any index is out of the valid Excel range.
Thrown when a RelativeColumnIndex exceeds the auto-filter column span, or when two filter columns share the same RelativeColumnIndex.
Initializes a new instance of the SpreadAutoFilter class with a range only (no filter columns).
public SpreadAutoFilter(int fromRowIndex, int fromColumnIndex, int toRowIndex, int toColumnIndex)
The start row index of the auto-filter range.
fromColumnIndexintThe start column index of the auto-filter range.
toRowIndexintThe end row index of the auto-filter range.
toColumnIndexintThe end column index of the auto-filter range.
Exceptions: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.
Properties
Gets the filter column definitions applied to specific columns within the auto-filter range.
public IList<SpreadFilterColumn> FilterColumns { get; }
Gets the start column index of the auto-filter range.
public int FromColumnIndex { get; }
Gets the start row index of the auto-filter range.
public int FromRowIndex { get; }
Gets the end column index of the auto-filter range.
public int ToColumnIndex { get; }
Gets the end row index of the auto-filter range.
public int ToRowIndex { get; }