Page Methods (Visio)
Contribute to this content Use GitHub to suggest and submit changes. See our guidelines for contributing to VBA documentation. |
Methods
Name |
Description |
---|---|
Adds a guide to a drawing page. |
|
Automatically draws multiple connections in the specified directions between the specified shapes. Returns the number of shapes connected. |
|
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. |
|
Makes small adjustments to shapes to move them off page breaks. |
|
Returns a rectangle that tightly encloses the shapes of a page. |
|
Centers a page's, master's, or group's shapes with respect to the extent of the page, master, or group. . |
|
Creates various types of Selection objects. |
|
Deletes a Page object. Can also renumber remaining pages. |
|
Creates a shape whose path consists of an arc defined by the three points passed as parameters. |
|
Creates a shape whose path is defined by the supplied sequence of Bezier control points. |
|
Creates a new shape whose path consists of a circular arc defined by its center, radius, and start and end angles. |
|
Adds a line to the Shapes collection of a page. |
|
Creates a new shape whose path consists of a single NURBS (nonuniform rational B-spline) segment. |
|
Adds an oval (ellipse) to the Shapes collection of a page. |
|
Creates a shape whose path is a polyline along a given set of points. |
|
Creates a shape whose path consists of an elliptical arc defined by the two points and the flag passed in as arguments. |
|
Adds a rectangle to the Shapes collection of a page, master, or group. |
|
Creates a new shape whose path follows a given sequence of points. |
|
Creates one or more new Shape objects by dropping an object onto a receiving object such as a master, drawing page, shape, or group. |
|
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. |
|
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. |
|
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. |
|
Drops the specified object into the specified list at the specified position. Returns the newly dropped shape. |
|
Inserts a data graphics legend on a Microsoft Visio drawing page. Returns the list shape instance specified in the OuterList parameter. |
|
Returns a new shape on the drawing page linked to data in a data recordset. |
|
Creates one or more new Shape objects on a page. It returns an array of the IDs of the Shape objects it produces. |
|
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. |
|
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. |
|
Duplicates the specified page and returns the new page. |
|
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. |
|
Returns the list of identifiers of the callout shapes on the page. |
|
Returns an array of shape identifiers (IDs) of the container shapes on the page. |
|
Returns the formulas of many cells. |
|
Returns the formulas of many cells. |
|
Gets the results or formulas of many cells. |
|
Returns an array of all shapes on the active page linked to data in the specified data recordset. |
|
Returns an array of all shapes on the active page linked to data in the specified data row in the specified data recordset. |
|
Returns a Variant that represents the specified theme component of the specified page. |
|
Returns the color, style, and embellishment, if any, of the variant of the theme applied to the specified page. |
|
Imports a file into the current document. |
|
Adds a linked or embedded object to a page, master, or group. |
|
Adds a new embedded object or ActiveX control to a page, master, or group. |
|
Lays out the shapes and/or reroutes the connectors for the page, master, group, or selection. |
|
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. |
|
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. |
|
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. |
|
Opens a new drawing window that displays a page. |
|
Pastes the contents of the Clipboard into an object. |
|
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). |
|
Pastes the shape to the specified location on the page. |
|
Prints the contents of an object to the default printer. |
|
Prints a single tile of a drawing page. |
|
Resizes the page, or the master's page, to fit tightly around the shapes or master that are on it. |
|
Sets the formulas of one or more cells. |
|
Sets the results or formulas of one or more cells. |
|
Sets the theme for the specified page. |
|
Sets the color, style, and optionally the embellishment of the variant of the theme applied to the specified page. |
|
Returns an array of unique IDs of shapes on the page, as specified by their shape IDs. |
|
Splits the specified connector with the specified shape. Returns the new duplicated connector. |
|
Returns an array of shape IDs of shapes on the page, as specifed by their unique IDs. |
|
Returns the bounding rectangle of the virtual container that has all the shapes of the given page. |