GdPicture.NET.14
GdPicture14.WPF Namespace / GdViewer Class / PageInchWidth Property
Example





In This Topic
PageInchWidth Property
In This Topic
Returns the width, in inches, of the current page of the document displayed in the GdViewer control.
Syntax
'Declaration
 
Public ReadOnly Property PageInchWidth As Double
 

Property Value

The current page width, in inches.
Example
How to determine the fully visible rectangle of the current page within the viewer.
'We assume that the GdViewer1 control has been properly integrated
'and your document has been properly displayed as well.
Dim left As Double = 0, top As Double = 0, width As Double = 0, height As Double = 0
GdViewer1.GetDisplayedAreaInch(left, top, width, height)
MessageBox.Show("Page width (X): " + (GdViewer1.PageInchWidth).ToString() + vbCrLf + "Page height (Y): " + (GdViewer1.PageInchHeight).ToString() + vbCrLf + vbCrLf +
                "Displayed area:" + vbCrLf + "  top-left point (X,Y): " + left + ", " + top + vbCrLf + "  width: " + width + "  height: " + height, "GdViewer.PageInchWidth")
See Also