Viewer.DisplayPropertyDialog Method

Visio Viewer

Displays the Properties and Settings dialog box at the specified screen coordinates, in pixels, in the Microsoft Office Visio 2007 Viewer.

Syntax

expression.DisplayPropertyDialog(ScreenX, ScreenY)

expression   An expression that returns a Viewer object.

Parameters

Name Required/Optional Data Type Description
ScreenX Optional Variant The x-coordinate of the point where the dialog box should appear, relative to the origin of the frame of the screen, in pixels.
ScreenY Optional Variant The y-coordinate of the point where the dialog box should appear, relative to the origin of the frame of the screen, in pixels.

Return Value
Nothing

Remarks

Use the optional screenXand screenY parameters to specify the coordinates of the point where you want the dialog box to appear, relative to the origin of the frame of the screen. The origin of the screen frame is in the upper left-hand corner. If you do not specify coordinates, the dialog box appears in its default position, at the lower right-hand corner of the Viewer control.

Example

The following code displays the Properties and Settings dialog box at screen coordinates (300 300).

Visual Basic for Applications
  
Dim lngScreenPosX As Long 
Dim lngScreenPosY As Long
lngScreenPosX = 300
lngScreenPosY = 300 
vsoViewer.DisplayPropertyDialog lngScreenPosX, lngScreenPosY