Table of Contents

Class ReportSearchIndex

Namespace
DocWright.Reporting.Viewer
Assembly
DocWright.Reporting.Viewer.dll

Full-text search over a paginated report: which textbox holds a term, and where on the pages it is drawn.

public sealed class ReportSearchIndex
Inheritance
ReportSearchIndex
Inherited Members

Remarks

The index is built once from a page model and then only read, so it is safe to share between threads and cheap to keep for as long as the pagination it came from.

Search reads a textbox's Value — its whole formatted text, which is what a reader sees as one string — rather than the runs, so a term split across two runs by a line break or a change of font is still found. Mapping the match back to the page is what ValueOffset is for.

Properties

TextboxCount

Gets the number of distinct textboxes the index covers.

Methods

Build(ReportPageModel)

Builds an index over a paginated report.

Find(string)

Finds every occurrence of a term, with the default options.

Find(string, ReportSearchOptions?)

Finds every occurrence of a term.