Visio.DocumentView class

Represents the DocumentView class.

[ API set: 1.1 ]

Extends
OfficeExtension.ClientObject

Properties

disableHyperlinks

Disable Hyperlinks.

[ API set: 1.1 ]

disablePan

Disable Pan.

[ API set: 1.1 ]

disableZoom

Disable Zoom.

[ API set: 1.1 ]

hideDiagramBoundary

Hide Diagram Boundary.

[ API set: 1.1 ]

Methods

load(option)

Queues up a command to load the specified properties of the object. You must call "context.sync()" before reading the properties.

toJSON()

Property Details

Disable Hyperlinks.

[ API set: 1.1 ]

disableHyperlinks: boolean;
Property Value
boolean

disablePan

Disable Pan.

[ API set: 1.1 ]

disablePan: boolean;
Property Value
boolean

disableZoom

Disable Zoom.

[ API set: 1.1 ]

disableZoom: boolean;
Property Value
boolean

hideDiagramBoundary

Hide Diagram Boundary.

[ API set: 1.1 ]

hideDiagramBoundary: boolean;
Property Value
boolean

Method Details

load(option)

Queues up a command to load the specified properties of the object. You must call "context.sync()" before reading the properties.

load(option?: string | string[]): Visio.DocumentView;
Parameters
option
string | string[]

A comma-delimited string or an array of strings that specify the properties to load.

Returns
Remarks

In addition to this signature, this method has the following signatures:

load(option?: { select?: string; expand?: string; }): Visio.DocumentView - Where option.select is a comma-delimited string that specifies the properties to load, and options.expand is a comma-delimited string that specifies the navigation properties to load.

load(option?: { select?: string; expand?: string; top?: number; skip?: number }): Visio.DocumentView - Only available on collection types. It is similar to the preceding signature. Option.top specifies the maximum number of collection items that can be included in the result. Option.skip specifies the number of items that are to be skipped and not included in the result. If option.top is specified, the result set will start after skipping the specified number of items.

toJSON()

toJSON(): Visio.Interfaces.DocumentViewData;
Returns