New to Telerik UI for WinFormsStart a free 30-day trial

Describes a single successful text match, exposing its range, extracted string value, and convenience helpers for layout info.

Definition

Namespace:Telerik.Windows.Documents.Fixed.Search

Assembly:Telerik.Windows.Documents.Fixed.dll

Syntax:

C#
public class SearchResult

Inheritance: objectSearchResult

Properties

Gets a sentinel instance returned when no match is found.

C#
public static SearchResult NotFound { get; }
Property Value:

The value represents a default SearchResult instance when there is no search result found.

Gets the range spanning the matched text in the document.

C#
public TextRange Range { get; }
Property Value:

The value represents a TextRange object describing the start and end positions of the match.

Gets the textual content of the match extracted from the document.

C#
public string Result { get; }
Property Value:

A string value representing the match.

Methods

Gets the fixed page containing the match.

C#
public RadFixedPage GetResultPage()
Returns:

RadFixedPage

The page containing the search result.

Gets the layout bounding rectangle of the first word in the match (for hit highlighting).

C#
public Rect GetWordBoundingRect()
Returns:

Rect

Returns the bounding rectangle of the result word.

Returns the matched string value.

C#
public override string ToString()
Returns:

string

A string that represents the current object.

Overrides: object.ToString()