[]
ReportViewer.SearchResult
Represents a search result.
example
const result = new SearchResult(0, 'Match', new Rect(0, 0, 10, 10), 0, new Range(0, 5));
• new SearchResult(pageIndex, displayText, itemArea, itemIndex, range, userData?)
Initializes a new instance of the SearchResult class.
example
const result = new SearchResult(0, 'Match', new Rect(0, 0, 10, 10), 0, new Range(0, 5));
| Name | Type | Description |
|---|---|---|
pageIndex |
number |
The index of the page where the occurrence is found. |
displayText |
string |
The text to display for the result. |
itemArea |
Rect |
The coordinates of the matched item area. |
itemIndex |
number |
The logical page item index. |
range |
Range |
The selection text range. |
userData? |
any |
Optional plugin-specific data. |
• Readonly DisplayText: string
Gets the text to display for the result.
• Readonly ItemArea: Rect
Gets the coordinates of the matched item area.
• Readonly ItemIndex: number
Gets the logical page item index.
• Readonly PageIndex: number
Gets the index of the page where the occurrence is found.
• Readonly Range: Range
Gets the selection text range.
• Optional Readonly UserData: any
Gets optional plugin-specific data.
▪ Static Readonly BeforeBegin: SearchResult
Represents a marker indicating the search should begin from the start.
▪ Static Readonly MakePageStart: (pageIndex: number) => SearchResult
▸ (pageIndex): SearchResult
Represents a marker indicating a page boundary.
| Name | Type |
|---|---|
pageIndex |
number |
▪ Static Readonly PastEnd: SearchResult
Represents a marker indicating the search has passed the end of the document.