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
valuesstring[]The values, as the cells show them (
East,5,12.50).
Returns
- XlsxFilterCriterion
The criterion.
Exceptions
- ArgumentNullException
valuesor 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
valuesIEnumerable<string>The values, as the cells show them.
includeBlanksboolWhether empty cells pass too.
Returns
- XlsxFilterCriterion
The criterion.
Exceptions
- ArgumentNullException
valuesor one of them is null.- ArgumentException
No value is given and blanks are not included.