 | PdfViewerGetHighlightedRects Method |
Get a collection of rectangles that represent the highlighted text on a specific page and in accordance with the specified
HighlightInfo structure.
Namespace: Patagames.Pdf.Net.Controls.WinFormsAssembly: Patagames.Pdf.WinForms (in Patagames.Pdf.WinForms.dll) Version: 4.100.2704
Syntaxpublic List<Rectangle> GetHighlightedRects(
int pageIndex,
HighlightInfo selInfo
)
Public Function GetHighlightedRects (
pageIndex As Integer,
selInfo As HighlightInfo
) As List(Of Rectangle)
public:
List<Rectangle>^ GetHighlightedRects(
int pageIndex,
HighlightInfo selInfo
)
member GetHighlightedRects :
pageIndex : int *
selInfo : HighlightInfo -> List<Rectangle> public List<Rectangle> GetHighlightedRects(
int pageIndex,
HighlightInfo selInfo
)
function GetHighlightedRects(pageIndex, selInfo);
Parameters
- pageIndex Int32
- Zero-based index of a page.
- selInfo HighlightInfo
- A HighlightInfo structure that represent the highlighted text.
Return Value
ListRectangleA collection of rectangles or an empty collection if the page does not contain highlighted text.
RemarksThe rectangles are given in the user control coordinate system.
See Also