Property ValueOffset
- Namespace
- DocWright.Reporting.Pagination
- Assembly
- DocWright.Reporting.dll
ValueOffset
Gets where the run's text begins in its textbox's Value, in UTF-16 units, or -1 when the value does not contain it.
public int ValueOffset { get; }
Property Value
Remarks
This is what turns a match in the value into something on a page. A viewer searches Value — one string per textbox, the same on every page the textbox continues onto — and then needs to know which runs draw the characters it matched, on which page, and where. Reconstructing that afterwards by looking the matched text up among the runs finds the wrong occurrence whenever a textbox contains the same word twice.
-1 is a run layout supplied rather than the report: a list marker. ValueLength is then 0.