Table of Contents

Method FindText

Namespace
DocWright.Formats.Xlsx
Assembly
DocWright.Formats.Xlsx.dll

FindText(string, XlsxFindOptions?)

Finds every occurrence of a text in the workbook's worksheets. See FindText(string, XlsxFindOptions?).

public IReadOnlyList<XlsxCellMatch> FindText(string text, XlsxFindOptions? options = null)

Parameters

text string

The text to find.

options XlsxFindOptions

How to match, or null for the defaults.

Returns

IReadOnlyList<XlsxCellMatch>

The matches, sheet by sheet in tab order.

Exceptions

ArgumentNullException

text is null.

ArgumentException

text is empty.

InvalidDocumentException

A sheet's part is malformed.