Page Object Members

Visio Automation Reference

Represents a drawing page, which can be either a foreground page or a background page.

Methods

  Name Description
Aa342275.methods(en-us,office.12).gif AddGuide Adds a guide to a drawing page.
Aa342275.methods(en-us,office.12).gif BoundingBox Returns a rectangle that tightly encloses the shapes of a page.
Aa342275.methods(en-us,office.12).gif CenterDrawing Centers a page's, master's, or group's shapes with respect to the extent of the page, master, or group.
Aa342275.methods(en-us,office.12).gif CreateSelection Creates various types of Selection objects.
Aa342275.methods(en-us,office.12).gif Delete Deletes a Page object. Can also renumber remaining pages.
Aa342275.methods(en-us,office.12).gif DrawArcByThreePoints Creates a new shape whose path consists of an arc defined by the three points passed as parameters.
Aa342275.methods(en-us,office.12).gif DrawBezier Creates a new shape whose path is defined by the supplied sequence of Bezier control points.
Aa342275.methods(en-us,office.12).gif DrawCircularArc Creates a new shape whose path consists of a circular arc defined by its center, radius, and start and end angles.
Aa342275.methods(en-us,office.12).gif DrawLine Adds a line to the Shapes collection of a page.
Aa342275.methods(en-us,office.12).gif DrawNURBS Creates a new shape whose path consists of a single NURBS (nonuniform rational B-spline) segment.
Aa342275.methods(en-us,office.12).gif DrawOval Adds an oval (ellipse) to the Shapes collection of a page.
Aa342275.methods(en-us,office.12).gif DrawPolyline Creates a new shape whose path is a polyline along a given set of points.
Aa342275.methods(en-us,office.12).gif DrawQuarterArc Creates a new shape whose path consists of an elliptical arc defined by the two points and the flag passed in as arguments.
Aa342275.methods(en-us,office.12).gif DrawRectangle Adds a rectangle to the Shapes collection of a page, master, or group.
Aa342275.methods(en-us,office.12).gif DrawSpline Creates a new shape whose path follows a given sequence of points.
Aa342275.methods(en-us,office.12).gif 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.
Aa342275.methods(en-us,office.12).gif DropLinked Returns a new shape on the drawing page linked to data in a data recordset.
Aa342275.methods(en-us,office.12).gif DropMany Creates one or more new Shape objects on a page. It returns an array of the IDs of the Shape objects it produces.
Aa342275.methods(en-us,office.12).gif 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.
Aa342275.methods(en-us,office.12).gif 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.
Aa342275.methods(en-us,office.12).gif Export Exports an object from Microsoft Office Visio to a file format such as .bmp, .dib, .dwg, .dxf, .emf, .emz, .gif, .htm, .jpg, .png, .svg, .svgz, .tif, or .wmf.
Aa342275.methods(en-us,office.12).gif GetFormulas Returns the formulas of many cells.
Aa342275.methods(en-us,office.12).gif GetFormulasU Returns the formulas of many cells.
Aa342275.methods(en-us,office.12).gif GetResults Gets the results or formulas of many cells.
Aa342275.methods(en-us,office.12).gif GetShapesLinkedToData Returns an array of all shapes on the active page linked to data in the specified data recordset.
Aa342275.methods(en-us,office.12).gif GetShapesLinkedToDataRow Returns an array of all shapes on the active page linked to data in the specified data row in the specified data recordset.
Aa342275.methods(en-us,office.12).gif Import Imports a file into the current document.
Aa342275.methods(en-us,office.12).gif InsertFromFile Adds a linked or embedded object to a page, master, or group.
Aa342275.methods(en-us,office.12).gif InsertObject Adds a new embedded object or ActiveX control to a page, master, or group.
Aa342275.methods(en-us,office.12).gif Layout Lays out the shapes and/or reroutes the connectors for the page, master, group, or selection.
Aa342275.methods(en-us,office.12).gif 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.
Aa342275.methods(en-us,office.12).gif OpenDrawWindow Opens a new drawing window that displays a page.
Aa342275.methods(en-us,office.12).gif Paste Pastes the contents of the Clipboard into an object.
Aa342275.methods(en-us,office.12).gif 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).
Aa342275.methods(en-us,office.12).gif Print Prints the contents of an object to the default printer.
Aa342275.methods(en-us,office.12).gif PrintTile Prints a single tile of a drawing page.
Aa342275.methods(en-us,office.12).gif ResizeToFitContents Resizes the page, or the master's page, to fit tightly around the shapes or master that are on it.
Aa342275.methods(en-us,office.12).gif SetFormulas Sets the formulas of one or more cells.
Aa342275.methods(en-us,office.12).gif SetResults Sets the results or formulas of one or more cells.
Aa342275.methods(en-us,office.12).gif ShapeIDsToUniqueIDs Returns an array of unique IDs of shapes on the page, as specifed by their shape IDs.
Aa342275.methods(en-us,office.12).gif UniqueIDsToShapeIDs Returns an array of shape IDs of shapes on the page, as specifed by their unique IDs.

Properties

  Name Description
Aa342275.properties(en-us,office.12).gif Application Read-only. Returns the instance of Microsoft Office Visio that is associated with an object.
Aa342275.properties(en-us,office.12).gif Background Determines whether a page is a background page. Read/write.
Aa342275.properties(en-us,office.12).gif BackPage Gets or sets the background page of a page. Read/write.
Aa342275.properties(en-us,office.12).gif Connects Returns a Connects collection for a shape, page, or master. Read-only.
Aa342275.properties(en-us,office.12).gif Document Gets the Document object that is associated with an object. Read-only.
Aa342275.properties(en-us,office.12).gif EventList Returns the EventList collection of an object or the EventList collection that contains an Event object. Read-only.
Aa342275.properties(en-us,office.12).gif ID Gets the ID of an object. Read-only.
Aa342275.properties(en-us,office.12).gif Index Gets or sets the ordinal position of a page in a Pages collection. Read/write.
Aa342275.properties(en-us,office.12).gif Layers Returns the Layers collection of an object. Read-only.
Aa342275.properties(en-us,office.12).gif Name Specifies the name of an object. Read-only.
Aa342275.properties(en-us,office.12).gif NameU Specifies the universal name of a Page object. Read/write.
Aa342275.properties(en-us,office.12).gif ObjectType Returns an object's type. Read-only.
Aa342275.properties(en-us,office.12).gif OLEObjects Returns the OLEObjects collection of a page. Read-only.
Aa342275.properties(en-us,office.12).gif OriginalPage Returns the Page object that represents the original Microsoft Office Visio drawing page that was marked up on separate markup overlays by reviewers of the drawing. Read-only.
Aa342275.properties(en-us,office.12).gif PageSheet Returns the page sheet (an object that represents the ShapeSheet spreadsheet) of a page. Read-only.
Aa342275.properties(en-us,office.12).gif PersistsEvents Indicates whether an object is capable of containing persistent events in its EventList collection. Read-only.
Aa342275.properties(en-us,office.12).gif Picture Returns a picture that represents an enhanced metafile (EMF) contained in a master, shape, selection, or page. Read-only.
Aa342275.properties(en-us,office.12).gif PrintTileCount Returns the number of print tiles for a drawing page. Read-only.
Aa342275.properties(en-us,office.12).gif ReviewerID Gets the reviewer ID associated with the markup overlay. Read-only.
Aa342275.properties(en-us,office.12).gif Shapes Returns the Shapes collection for a page, master, or group. Read-only.
Aa342275.properties(en-us,office.12).gif SpatialSearch Returns a Selection object whose shapes meet certain criteria in relation to a point that is expressed in the coordinate space of a page, master, or group. Read-only.
Aa342275.properties(en-us,office.12).gif Stat Returns status information for an object. Read-only.
Aa342275.properties(en-us,office.12).gif ThemeColors Gets or sets the current theme colors for the page. Read/write.
Aa342275.properties(en-us,office.12).gif ThemeEffects Gets or sets the current theme effect for the page. Read/write.
Aa342275.properties(en-us,office.12).gif Type Returns the type of the object. Read-only.

Events

  Name Description
Aa342275.events(en-us,office.12).gif BeforePageDelete Occurs before a page is deleted.
Aa342275.events(en-us,office.12).gif BeforeSelectionDelete Occurs before selected objects are deleted.
Aa342275.events(en-us,office.12).gif BeforeShapeDelete Occurs before a shape is deleted.
Aa342275.events(en-us,office.12).gif BeforeShapeTextEdit Occurs before a shape is opened for text editing in the user interface.
Aa342275.events(en-us,office.12).gif CellChanged Occurs after the value changes in a cell in a document.
Aa342275.events(en-us,office.12).gif ConnectionsAdded Occurs after connections have been established between shapes.
Aa342275.events(en-us,office.12).gif ConnectionsDeleted Occurs after connections between shapes have been removed.
Aa342275.events(en-us,office.12).gif ConvertToGroupCanceled Occurs after an event handler has returned True (cancel) to a QueryCancelConvertToGroup event.
Aa342275.events(en-us,office.12).gif FormulaChanged Occurs after a formula changes in a cell in the object that receives the event.
Aa342275.events(en-us,office.12).gif GroupCanceled Occurs after an event handler has returned True (cancel) to a QueryCancelGroup event.
Aa342275.events(en-us,office.12).gif PageChanged Occurs after the name of a page, the background page associated with a page, or the page type (foreground or background) changes.
Aa342275.events(en-us,office.12).gif PageDeleteCanceled Occurs after an event handler has returned True (cancel) to a QueryCancelPageDelete event.
Aa342275.events(en-us,office.12).gif QueryCancelConvertToGroup Occurs before the application converts a selection of shapes to a group in response to a user action in the interface. If any event handler returns True, the operation is canceled.
Aa342275.events(en-us,office.12).gif QueryCancelGroup Occurs before the application groups a selection of shapes in response to a user action in the interface. If any event handler returns True, the operation is canceled.
Aa342275.events(en-us,office.12).gif QueryCancelPageDelete Occurs before the application deletes a page in response to a user action in the interface. If any event handler returns True, the operation is canceled.
Aa342275.events(en-us,office.12).gif QueryCancelSelectionDelete Occurs before the application deletes a selection of shapes in response to a user action in the interface. If any event handler returns True, the operation is canceled.
Aa342275.events(en-us,office.12).gif QueryCancelUngroup Occurs before the application ungroups a selection of shapes in response to a user action in the interface. If any event handler returns True, the operation is canceled.
Aa342275.events(en-us,office.12).gif SelectionAdded Occurs after one or more shapes are added to a document.
Aa342275.events(en-us,office.12).gif SelectionDeleteCanceled Occurs after an event handler has returned True (cancel) to a QueryCancelSelectionDelete event.
Aa342275.events(en-us,office.12).gif ShapeAdded Occurs after one or more shapes are added to a document.
Aa342275.events(en-us,office.12).gif ShapeChanged Occurs after a property of a shape that is not stored in a cell is changed in a document.
Aa342275.events(en-us,office.12).gif ShapeDataGraphicChanged Occurs after a data graphic is applied to or deleted from a shape.
Aa342275.events(en-us,office.12).gif ShapeExitedTextEdit Occurs after a shape is no longer open for interactive text editing.
Aa342275.events(en-us,office.12).gif ShapeLinkAdded Occurs after a shape is linked to a data row.
Aa342275.events(en-us,office.12).gif ShapeLinkDeleted Occurs after the link between a shape and a data row is deleted.
Aa342275.events(en-us,office.12).gif ShapeParentChanged Occurs after shapes are grouped or a group is ungrouped.
Aa342275.events(en-us,office.12).gif TextChanged Occurs after the text of a shape is changed in a document.
Aa342275.events(en-us,office.12).gif UngroupCanceled Occurs after an event handler has returned True (cancel) to a QueryCancelUngroup event.