Object Model Reference : Classes : W : Window : Methods : Window.DocumentToScreen |
Sub DocumentToScreen(XDoc As Double, YDoc As Double, XScreen As Long, YScreen As Long)
Member of Window
The DocumentToScreen method converts document coordinates to screen coordinates.
The following VBA example converts the specified document coordinates to screen coordinates.
Sub Test() |
Dim x As Long |
Dim y As Long |
ActiveWindow.DocumentToScreen 4.25, 5.5, x, y |
MsgBox "The document coordinates (4.25,5.5) converted to screen " & _ |
"coordinates are (" & x & "," & y & ")." |
End Sub |
Copyright 2013 Corel Corporation. All rights reserved.