|
|
Perfect thanks !!!! :)
|
|
|
Hi, You should provide an instance of your pdfViewer to static method (as well as all other non-static objects). Code:
public static void zoomRecherche(List<Point> coordSearched, int iSearch, PdfViewer myViewer)
{
myViewer.Zoom = 1.5f;
myViewer.ScrollToPoint(myViewer.CurrentIndex, coordSearched[iSearch]);
}
Now you can call your method Code:
YourClass.zoomRecherche(coordSearched, iSearch, this.pdfViewer);
|
|
|
Hi, I'm trying to get this function in static but it doesn't seems to be the solution: Code: private void zoomRecherche(List<Point> coordSearched, int iSearch)
{
this.pdfViewer.Zoom = 1.5f;
pdfViewer.ScrollToPoint(pdfToolBarPages.PdfViewer.CurrentIndex, coordSearched[iSearch]);
//pdfViewer.CurrentIndex = pdfToolBarPages.PdfViewer.CurrentIndex;
//pdfViewer.ScrollToPage(pdfToolBarPages.PdfViewer.CurrentIndex);
//pdfViewer.ScrollToChar(coordSearched[1]);
}
But when i put public void zoomRecherche(List<Point> coordSearched, int iSearch), and delete the first thisi get errors messages with pdfViewer and pdfToolBarPages (which depend on pdfViewer). How can i do to use this function on an other form? Thanx.
|
Important Information:
The Patagames Software Support Forum uses cookies. By continuing to browse this site, you are agreeing to our use of cookies.
More Details
Close