Master Methods (Visio)

GitHub-Mark-64px

Contribute to this content

Use GitHub to suggest and submit changes. See our guidelines for contributing to VBA documentation.

Methods

Name

Description

AddGuide

Adds a guide to a master.

BoundingBox

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

CenterDrawing

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

Close

Closes a master.

CreateSelection

Creates various types of Selection objects.

CreateShortcut

Creates a shortcut for a master.

DataGraphicDelete

Deletes the Master of type visTypeDataGraphic from the Masters collection of the document.

Delete

Deletes an object.

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 master.

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 master.

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.

DropMany

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

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.

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.

ExportIcon

Exports the icon for a Master object to a named file or the Clipboard.

GetFormulas

Returns the formulas of many cells.

GetFormulasU

Returns the formulas of many cells.

GetResults

Gets the results or formulas of many cells.

Import

Imports a file into the current document.

ImportIcon

Imports the icon for a Master object from a named file.

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.

Open

Opens an existing master so that it can be edited.

OpenDrawWindow

Opens a new drawing window that displays a master.

OpenIconWindow

Opens an icon window that shows a master's icon.

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 a shape to the specified location.

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.

VisualBoundingBox

Returns the bounding rectangle of the virtual container that has all the shapes of the given master.