Table of Contents

Class XlsxFilterCriterion

Namespace
DocWright.Spreadsheet
Assembly
DocWright.Spreadsheet.dll

What a column of a filter lets through.

public sealed class XlsxFilterCriterion
Inheritance
XlsxFilterCriterion
Inherited Members

Remarks

Made with the factory methods; read back from a sheet as the file states it.

Properties

Conditions

Gets the conditions, for Custom: one or two.

Count

Gets how many items, or what percent of the column's numbers, pass, for Top.

IncludesBlanks

Gets whether empty cells pass, for Values.

IsBottom

Gets whether the smallest numbers pass rather than the largest, for Top.

Kind

Gets the kind of criterion.

MatchAll

Gets whether a cell must meet both conditions (true) or either (false), for Custom.

Percent

Gets whether Count is a percent, for Top.

Values

Gets the values that pass, for Values: a cell passes when the text it shows is one of them, without regard to case.

Methods

AboveAverage()

Lets through numbers above the column's average.

BelowAverage()

Lets through numbers below the column's average.

Blanks()

Lets through empty cells only, as Excel's (Blanks) check box does.

Bottom(int, bool)

Lets through the smallest numbers of the column. See Top(int, bool).

Custom(XlsxFilterCondition, bool, XlsxFilterCondition)

Lets through cells that meet both conditions, or either.

Custom(XlsxFilterOperator, string)

Lets through cells that meet a condition.

NonBlanks()

Lets through every cell that is not empty, written as Excel writes it: not equal to a space.

Top(int, bool)

Lets through the largest numbers of the column.

ValuesOf(IEnumerable<string>, bool)

Lets through cells that show one of the values, and empty cells when asked.

ValuesOf(params string[])

Lets through cells that show one of the values.