Previous Document Next Document
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.

Parameters
Description
XDoc
Specifies the x-coordinate in the document
YDoc
Specifies the y-coordinate in the document
XScreen
Specifies the x-coordinate on the screen
YScreen
Specifies the y-coordinate on the screen

The following code example converts 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 

Previous Document Next Document Back to Top

Copyright 2007 Corel Corporation. All rights reserved.