Table of contents
TOC
Collapse the table of content
Expand the table of content

Viewer.DisplayContextMenu Method (Visio Viewer)

office 365 dev account|Last Updated: 6/12/2017
|
1 Contributor

Displays the shortcut menu for Microsoft Visio Viewer at the specified screen coordinates, in pixels.

Syntax

expression. DisplayContextMenu( ScreenX, ScreenY)

_expression_An expression that returns a Viewer object.

Parameters

NameRequired/OptionalData TypeDescription
ScreenXRequiredLongThe x-coordinate, in pixels, of the point where the menu should appear, relative to the origin of the frame of the screen.
ScreenYRequiredLongThe y-coordinate, in pixels, of the point where the menu should appear, relative to the origin of the frame of the screen.

Return Value

Nothing

Remarks

Use the screenX and screenY parameters to specify the coordinates of the point where you want the shortcut menu to appear, relative to the origin of the frame of the screen. The origin of the screen frame is in the upper left corner.

Example

The following code specifies that the shortcut menu appear at screen coordinates (300, 300).

vsoViewer.DisplayContextMenu(300,300)
© 2018 Microsoft