Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Methods

Page Methods (Visio)

Office 2013

This object has the following methods:

Name

Description

AddGuide

Adds a guide to a drawing page.

AutoConnectMany

Automatically draws multiple connections in the specified directions between the specified shapes. Returns the number of shapes connected.

AutoSizeDrawing

Automatically resizes the drawing page by adding as many printer-paper-sized tiles as necessary to fit all shapes in the drawing onto the page.

AvoidPageBreaks

Makes small adjustments to shapes to move them off page breaks.

BoundingBox

Returns a rectangle that tightly encloses the shapes of a page.

CenterDrawing

Centers a page's, master's, or group's shapes with respect to the extent of the page, master, or group. .

CreateSelection

Creates various types of Selection objects.

Delete

Deletes a Page object. Can also renumber remaining pages.

DrawArcByThreePoints

Creates a shape whose path consists of an arc defined by the three points passed as parameters.

DrawBezier

Creates a shape whose path is defined by the supplied sequence of Bezier control points.

DrawCircularArc

Creates a new shape whose path consists of a circular arc defined by its center, radius, and start and end angles.

DrawLine

Adds a line to the Shapes collection of a page.

DrawNURBS

Creates a new shape whose path consists of a single NURBS (nonuniform rational B-spline) segment.

DrawOval

Adds an oval (ellipse) to the Shapes collection of a page.

DrawPolyline

Creates a shape whose path is a polyline along a given set of points.

DrawQuarterArc

Creates a shape whose path consists of an elliptical arc defined by the two points and the flag passed in as arguments.

DrawRectangle

Adds a rectangle to the Shapes collection of a page, master, or group.

DrawSpline

Creates a new shape whose path follows a given sequence of points.

Drop

Creates one or more new Shape objects by dropping an object onto a receiving object such as a master, drawing page, shape, or group.

DropCallout

Creates a new callout Shape object on the page near the specified target shape, and associates the callout with the target shape. Returns the callout shape.

DropConnected

Creates a new Shape object on the page, places the new shape relative to the specified existing target shape, and adds a connector from the existing shape to the new shape. Returns the newly created shape.

DropContainer

Creates a new container Shape object on the page, places the container around the specified target shapes, and adds the target shapes to the container. Returns the container shape.

DropIntoList

Drops the specified object into the specified list at the specified position. Returns the newly dropped shape.

DropLegend

Inserts a data graphics legend on a Microsoft Visio drawing page. Returns the list shape instance specified in the OuterList parameter.

DropLinked

Returns a new shape on the drawing page linked to data in a data recordset.

DropMany

Creates one or more new Shape objects on a page. It returns an array of the IDs of the Shape objects it produces.

DropManyLinkedU

Creates multiple new shapes on the drawing page that are linked to multiple data rows in a data recordset. Returns the number of shape instances created and an array of IDs of those shapes.

DropManyU

Creates one or more new Shape objects on a page, in a master, or in a group. It returns an array of the IDs of the Shape objects it produces.

Duplicate

Duplicates the specified page and returns the new page.

Export

Exports an object from Microsoft Visio to a file format such as .bmp, .dib, .dwg, .dxf, .emf, .emz, .gif, .htm, .jpg, .png, .svg, .svgz, .tif, or .wmf.

GetCallouts

Returns the list of identifiers of the callout shapes on the page.

GetContainers

Returns an array of shape identifiers (IDs) of the container shapes on the page.

GetFormulas

Returns the formulas of many cells.

GetFormulasU

Returns the formulas of many cells.

GetResults

Gets the results or formulas of many cells.

GetShapesLinkedToData

Returns an array of all shapes on the active page linked to data in the specified data recordset.

GetShapesLinkedToDataRow

Returns an array of all shapes on the active page linked to data in the specified data row in the specified data recordset.

GetTheme

Returns a Variant that represents the specified theme component of the specified page.

GetThemeVariant

Returns the color, style, and embellishment, if any, of the variant of the theme applied to the specified page.

Import

Imports a file into the current document.

InsertFromFile

Adds a linked or embedded object to a page, master, or group.

InsertObject

Adds a new embedded object or ActiveX control to a page, master, or group.

Layout

Lays out the shapes and/or reroutes the connectors for the page, master, group, or selection.

LayoutChangeDirection

Revises the layout of a set of connected shapes on the page, by rotating or flipping a connected diagram without rotating or flipping the individual shapes.

LayoutIncremental

Makes small adjustments to the position of shapes on the drawing page to better align the shapes or to space them evenly from other shapes.

LinkShapesToDataRows

Links multiple rows in the specified data recordset, as specified by their data row IDs, to multiple shapes on the page, and optionally applies the current data graphic to the linked shapes.

OpenDrawWindow

Opens a new drawing window that displays a page.

Paste

Pastes the contents of the Clipboard into an object.

PasteSpecial

Inserts the contents of the Clipboard, allowing you to control the format of the pasted information and (optionally) establish a link to the source file (for example, a Microsoft Word document).

PasteToLocation

Pastes the shape to the specified location on the page.

Print

Prints the contents of an object to the default printer.

PrintTile

Prints a single tile of a drawing page.

ResizeToFitContents

Resizes the page, or the master's page, to fit tightly around the shapes or master that are on it.

SetFormulas

Sets the formulas of one or more cells.

SetResults

Sets the results or formulas of one or more cells.

SetTheme

Sets the theme for the specified page.

SetThemeVariant

Sets the color, style, and optionally the embellishment of the variant of the theme applied to the specified page.

ShapeIDsToUniqueIDs

Returns an array of unique IDs of shapes on the page, as specified by their shape IDs.

SplitConnector

Splits the specified connector with the specified shape. Returns the new duplicated connector.

UniqueIDsToShapeIDs

Returns an array of shape IDs of shapes on the page, as specifed by their unique IDs.

VisualBoundingBox

Show:
© 2015 Microsoft