Viewer.DisplayPropertyDialog method (Visio Viewer)
Displays the Properties and Settings dialog box at the specified screen coordinates, in pixels, in Microsoft Visio 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, in pixels, of the point where the dialog box should appear, relative to the origin of the frame of the screen. |
ScreenY | Optional | Variant | The y-coordinate, in pixels, of the point where the dialog box should appear, relative to the origin of the frame of the screen. |
Return value
Nothing
Remarks
Use the optional ScreenX and 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 corner. If you don't specify coordinates, the dialog box appears in its default position, at the lower-right corner of the Visio Viewer control.
Example
The following code displays the Properties and Settings dialog box at screen coordinates (300, 300).
Dim lngScreenPosX As Long
Dim lngScreenPosY As Long
lngScreenPosX = 300
lngScreenPosY = 300
vsoViewer.DisplayPropertyDialog lngScreenPosX, lngScreenPosY
Support and feedback
Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.