Vwa.VwaControl Class Methods

Applies to: apps for SharePoint | SharePoint Server 2013

The following table lists the methods of the Vwa.VwaControl Class class.

Methods

Name

Description

Vwa.VwaControl Class

Creates an instance of the VwaControl class.

Vwa.VwaControl.addHandler Method

Adds an event handler to the Visio Web Access Web Part.

Vwa.VwaControl.clearHandlers Method

Removes all event handlers from the Visio Web Access Web Part.

Vwa.VwaControl.displayCustomMessage Method

Displays a custom HTML error message in the Visio Web Access Web Part and disables interaction with the currently rendered Web drawing page.

Vwa.VwaControl.getActivePage Method

Returns a reference to the Page object that represents the currently rendered diagram page.

Vwa.VwaControl.getAllPageIds Method

Returns an array of strings that contains the names of all the pages contained within the Web drawing.

Vwa.VwaControl.getDiagramUrl Method

Returns the URL of the .vsdx, .vsdm, or .vdw file currently being rendered in the Visio Web Access Web Part.

Vwa.VwaControl.getDisplayMode Method

Returns a DisplayMode constant that specifies whether the Web drawing page is being displayed by using raster or Microsoft Silverlight technology.

Vwa.VwaControl.getVersion Method

Returns a string that represents the version of the VwaControl class.

Vwa.VwaControl.hideCustomMessage Method

Hides the custom developer-provided HTML error message and re-enables interaction with the currently rendered Web drawing page.

Vwa.VwaControl.openDiagram Method

Opens a new diagram from a published Visio .vsdx, .vsdm, or .vdw file located at the specified URL.

Vwa.VwaControl.refreshDiagram Method

Refreshes the current Web drawing page with data from the server.

Vwa.VwaControl.removeHandler Method

Removes an event handler from the Visio Web Access Web Part.

Vwa.VwaControl.setActivePage Method

Attempts to change the currently rendered Web drawing page to the one specified by pageID.

See also

Concepts

Vwa namespace