Class SearchResult
Describes a single successful text match, exposing its range, extracted string value, and convenience helpers for layout info.
Inheritance
Inherited Members
Namespace: Telerik.Windows.Documents.Fixed.Search
Assembly: Telerik.Windows.Documents.Fixed.dll
Syntax
public class SearchResult
Properties
NotFound
Gets a sentinel instance returned when no match is found.
Declaration
public static SearchResult NotFound { get; }
Property Value
|
SearchResult
The value represents a default SearchResult instance when there is no search result found. |
Range
Gets the range spanning the matched text in the document.
Declaration
public TextRange Range { get; }
Property Value
|
TextRange
The value represents a TextRange object describing the start and end positions of the match. |
Result
Gets the textual content of the match extracted from the document.
Declaration
public string Result { get; }
Property Value
|
System.String
A string value representing the match. |
Methods
GetResultPage()
Gets the fixed page containing the match.
Declaration
public RadFixedPage GetResultPage()
Returns
|
RadFixedPage
The page containing the search result. |
GetWordBoundingRect()
Gets the layout bounding rectangle of the first word in the match (for hit highlighting).
Declaration
public Rect GetWordBoundingRect()
Returns
|
System.Windows.Rect
Returns the bounding rectangle of the result word. |
ToString()
Returns the matched string value.
Declaration
public override string ToString()
Returns
|
System.String
A string that represents the current object. |