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