Table of Contents

Method ValuesOf

Namespace
DocWright.Spreadsheet
Assembly
DocWright.Spreadsheet.dll

ValuesOf(params string[])

Lets through cells that show one of the values.

public static XlsxFilterCriterion ValuesOf(params string[] values)

Parameters

values string[]

The values, as the cells show them (East, 5, 12.50).

Returns

XlsxFilterCriterion

The criterion.

Exceptions

ArgumentNullException

values or one of them is null.

ArgumentException

No value is given.

ValuesOf(IEnumerable<string>, bool)

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

public static XlsxFilterCriterion ValuesOf(IEnumerable<string> values, bool includeBlanks)

Parameters

values IEnumerable<string>

The values, as the cells show them.

includeBlanks bool

Whether empty cells pass too.

Returns

XlsxFilterCriterion

The criterion.

Exceptions

ArgumentNullException

values or one of them is null.

ArgumentException

No value is given and blanks are not included.