Previous Document Next Document

Object Model Reference : Classes : W : Window : Methods : Window.DocumentToScreen


Window.DocumentToScreen

Sub DocumentToScreen(XDoc As Double, YDoc As Double, XScreen As Long, YScreen As Long)

Description

Member of Window

The DocumentToScreen method converts document coordinates to screen coordinates.

Parameter
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

VBA example

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

Previous Document Next Document Back to Top

Copyright 2013 Corel Corporation. All rights reserved.