This is a migrated thread and some comments may be shown as answers.

Casting Telerik.Windows.Pdf.Documents.Fixed.Search.SearchResult

1 Answer 51 Views
PdfViewer and PdfViewerNavigator
This is a migrated thread and some comments may be shown as answers.
Bruce
Top achievements
Rank 2
Bruce asked on 07 Jul 2017, 07:21 PM
when using radPdfViewer1.PdfViewerElement.Find function the return type is Telerik.Windows.Pdf.Documents.Fixed.Search.SearchResult I would like to convert/cast that to Telerik.Windows.Documents.Fixed.Search.SearchResult.

when I attempt to create an instance of either SearchResult I get "SearchResult' does not contain a constructor that takes 0 arguments" but can find a constructor for either.

1 Answer, 1 is accepted

Sort by
0
Hristo
Telerik team
answered on 10 Jul 2017, 08:25 AM
Hi Bruce,

Thank you for writing.

At the moment RadPdfViewer for WinForms NET 2.0 and most of the types coming from the document processing libraries cannot be used directly. That is why the there are certain classes which are only different in their namespace. This sometimes may also cause a confusion.

With our R3 2017 release, RadPdfViewer will drop support NET 2.0 and the DPL types would be used directly. In this respect, after our next release the RadPdfViewerElement.Find method will return a Telerik.Windows.Documents.Fixed.Search.SearchResult object so you will not need to convert the objects. At the moment you cannot create such an instance because this class is used internally and it does not expose public constructors.

I hope this information was useful. Should you have further questions please do not hesitate to write back.

Regards,
Hristo
Progress Telerik
Try our brand new, jQuery-free Angular 2 components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
Tags
PdfViewer and PdfViewerNavigator
Asked by
Bruce
Top achievements
Rank 2
Answers by
Hristo
Telerik team
Share this question
or