Skip to content

Latest commit

 

History

History
58 lines (35 loc) · 1.53 KB

Project.Application.DocMove.md

File metadata and controls

58 lines (35 loc) · 1.53 KB
title keywords f1_keywords ms.service api_name ms.assetid ms.date ms.localizationpriority
Application.DocMove method (Project)
vbapj.chm2015
vbapj.chm2015
project-server
Project.Application.DocMove
defa6ea7-5d1a-d3c4-6486-39192d1da99c
06/08/2017
medium

Application.DocMove method (Project)

Moves the active window within the application window.

Syntax

expression. DocMove( _XPosition_, _YPosition_, _Points_ )

expression A variable that represents an Application object.

Parameters

Name Required/Optional Data type Description
XPosition Optional Long A number that specifies the distance of the active window from the left edge of the application.
YPosition Optional Long A number that specifies the distance of the active window from the top edge of the application.
Points Optional Boolean True if XPosition and YPosition are measured in points. False if they are measured in pixels. The default value is False.

Return value

Boolean

Remarks

The positions specified are taken from the upper-left corner of the usable area of the application window. The usable area is the area remaining after removing the menu bar and toolbars.

Example

The following example moves the window of the active project to the upper-left corner of the main window.

Sub MoveProjectWindowToCorner() 
 DocMove 0, 0 
End Sub

[!includeSupport and feedback]