Class
FindResult

Search result containing the matched text, its location across one or more runs, and character indices for precise range identification.

Definition

Namespace:Telerik.Windows.Documents.Flow.TextSearch

Assembly:Telerik.Windows.Documents.Flow.dll

Syntax:

cs-api-definition
public class FindResult

Inheritance: objectFindResult

Properties

FullMatchText

Complete matched text assembled from all runs in the match, reconstructing the original search result.

Declaration

cs-api-definition
public string FullMatchText { get; }

Property Value

string

RelativeEndIndex

Zero-based character index of the match end within the last run's text, identifying where the matched text concludes.

Declaration

cs-api-definition
public int RelativeEndIndex { get; }

Property Value

int

RelativeStartIndex

Zero-based character index of the match start within the first run's text, identifying where the matched text begins.

Declaration

cs-api-definition
public int RelativeStartIndex { get; }

Property Value

int

Runs

Collection of consecutive runs containing the matched text; single-run matches return one run, multi-run matches span multiple runs.

Declaration

cs-api-definition
public ReadOnlyCollection<Run> Runs { get; }

Property Value

ReadOnlyCollection<Run>