Update
You seem to use the Control.Size Property property.
And the starting position in the upper left corner seems to be Control.Location Property.
The first parameter is horizontal and the second parameter is vertical.
Form1.Designer.cs
I extracted it from the source and it was written like this
this.pdfViewer1.Location=new System.Drawing.Point(1,1);
this.pdfViewer1.Size=new System.Drawing.Size(500,300);
The following is for your reference
If it is the page of the document you are viewing, isn't it possible to change the size by setting the SizeMode
property to SizeModes.Zoom
and specifying a value (magnification?) in the Zoom
property?
Examples of forum questions (The purpose of the question is different)
Topic:PdfViewer.ScrollToPoint
float x=pdfViewer1.CurrentPage.Width/2;
float=pdfViewer1.CurrentPage.Height/2;
pdfViewer1.SizeMode=SizeModes.Zoom;
pdfViewer1.Zoom=4;
pdfViewer1.ScrollToPoint(0, newPointF(x,y));
github WinForms sample
Pdf.WinForms/PdfViewer.cs
© 2024 OneMinuteCode. All rights reserved.