Master Object Members

Visio Automation Reference

Represents a master in a stencil.

Methods

  Name Description
Aa342261.methods(en-us,office.12).gif AddGuide Adds a guide to a master.
Aa342261.methods(en-us,office.12).gif BoundingBox Returns a rectangle that tightly encloses the shapes of a master.
Aa342261.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.
Aa342261.methods(en-us,office.12).gif Close Closes a master.
Aa342261.methods(en-us,office.12).gif CreateSelection Creates various types of Selection objects.
Aa342261.methods(en-us,office.12).gif CreateShortcut Creates a shortcut for a master.
Aa342261.methods(en-us,office.12).gif DataGraphicDelete Deletes the Master of type visTypeDataGraphic from the Masters collection of the document.
Aa342261.methods(en-us,office.12).gif Delete Deletes an object.
Aa342261.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.
Aa342261.methods(en-us,office.12).gif DrawBezier Creates a new shape whose path is defined by the supplied sequence of Bezier control points.
Aa342261.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.
Aa342261.methods(en-us,office.12).gif DrawLine Adds a line to the Shapes collection of a master.
Aa342261.methods(en-us,office.12).gif DrawNURBS Creates a new shape whose path consists of a single NURBS (nonuniform rational B-spline) segment.
Aa342261.methods(en-us,office.12).gif DrawOval Adds an oval (ellipse) to the Shapes collection of a master.
Aa342261.methods(en-us,office.12).gif DrawPolyline Creates a new shape whose path is a polyline along a given set of points.
Aa342261.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.
Aa342261.methods(en-us,office.12).gif DrawRectangle Adds a rectangle to the Shapes collection of a page, master, or group.
Aa342261.methods(en-us,office.12).gif DrawSpline Creates a new shape whose path follows a given sequence of points.
Aa342261.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.
Aa342261.methods(en-us,office.12).gif DropMany Creates one or more new Shape objects in a master. It returns an array of the IDs of the Shape objects it produces.
Aa342261.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.
Aa342261.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.
Aa342261.methods(en-us,office.12).gif ExportIcon Exports the icon for a Master object to a named file or the Clipboard.
Aa342261.methods(en-us,office.12).gif GetFormulas Returns the formulas of many cells.
Aa342261.methods(en-us,office.12).gif GetFormulasU Returns the formulas of many cells.
Aa342261.methods(en-us,office.12).gif GetResults Gets the results or formulas of many cells.
Aa342261.methods(en-us,office.12).gif Import Imports a file into the current document.
Aa342261.methods(en-us,office.12).gif ImportIcon Imports the icon for a Master object from a named file.
Aa342261.methods(en-us,office.12).gif InsertFromFile Adds a linked or embedded object to a page, master, or group.
Aa342261.methods(en-us,office.12).gif InsertObject Adds a new embedded object or ActiveX control to a page, master, or group.
Aa342261.methods(en-us,office.12).gif Layout Lays out the shapes and/or reroutes the connectors for the page, master, group, or selection.
Aa342261.methods(en-us,office.12).gif Open Opens an existing master so that it can be edited.
Aa342261.methods(en-us,office.12).gif OpenDrawWindow Opens a new drawing window that displays a master.
Aa342261.methods(en-us,office.12).gif OpenIconWindow Opens an icon window that shows a master's icon.
Aa342261.methods(en-us,office.12).gif Paste Pastes the contents of the Clipboard into an object.
Aa342261.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).
Aa342261.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.
Aa342261.methods(en-us,office.12).gif SetFormulas Sets the formulas of one or more cells.
Aa342261.methods(en-us,office.12).gif SetResults Sets the results or formulas of one or more cells.

Properties

  Name Description
Aa342261.properties(en-us,office.12).gif AlignName Gets or sets the position of a master name in a stencil window. Read/write.
Aa342261.properties(en-us,office.12).gif Application Read-only. Returns the instance of Microsoft Office Visio that is associated with an object.
Aa342261.properties(en-us,office.12).gif BaseID Returns a base ID for a master. Read-only.
Aa342261.properties(en-us,office.12).gif Connects Returns a Connects collection for a shape, page, or master. Read-only.
Aa342261.properties(en-us,office.12).gif DataGraphicHidden Hides or displays a data graphic in the Data Graphics task pane in the Microsoft Office Visio user interface. Read/write.
Aa342261.properties(en-us,office.12).gif DataGraphicHidesText Displays or hides the text of a shape or of the primary shape in a selection when a data graphic is applied to the shape or to the selection. Read/write.
Aa342261.properties(en-us,office.12).gif DataGraphicHorizontalPosition Gets or sets the default horizontal callout position for members of the GraphicItems collection of the Master object of type visTypeDataGraphic. Read/write.
Aa342261.properties(en-us,office.12).gif DataGraphicShowBorder Gets or sets whether a border is displayed around the graphic items contained in the data graphic that are in default positions. Read/write.
Aa342261.properties(en-us,office.12).gif DataGraphicVerticalPosition Gets or sets the default vertical callout position for members of the GraphicItems collection of the Master object of type visTypeDataGraphic. Read/write.
Aa342261.properties(en-us,office.12).gif Document Gets the Document object that is associated with an object. Read-only.
Aa342261.properties(en-us,office.12).gif EditCopy Returns a master that is open for editing and originally copied from this master. Read-only.
Aa342261.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.
Aa342261.properties(en-us,office.12).gif GraphicItems Returns the GraphicItems collection that the master contains. Read-only.
Aa342261.properties(en-us,office.12).gif Hidden Hides or shows a master on a stencil or a style in the user interface. Read/write.
Aa342261.properties(en-us,office.12).gif Icon Returns the icon contained in a master. Read/write
Aa342261.properties(en-us,office.12).gif IconSize Gets or sets the size of a master icon. Read/write.
Aa342261.properties(en-us,office.12).gif IconUpdate Determines whether a master icon is updated manually or automatically. Read/write.
Aa342261.properties(en-us,office.12).gif ID Gets the ID of an object. Read-only.
Aa342261.properties(en-us,office.12).gif Index Gets the ordinal position of a Master object in the Masters collection. Read-only.
Aa342261.properties(en-us,office.12).gif IndexInStencil Gets or sets the index of a master or master shortcut object within its stencil. Read/write.
Aa342261.properties(en-us,office.12).gif IsChanged Indicates whether a master has changed since it was opened. Read-only.
Aa342261.properties(en-us,office.12).gif Layers Returns the Layers collection of an object. Read-only.
Aa342261.properties(en-us,office.12).gif MatchByName Determines how the application decides if a document master is already present when an instance of a master is dropped on the drawing page. It allows changes made to a document master to apply to new instances of the master, even if the instances are dragged from a stand-alone stencil file. Read/write.
Aa342261.properties(en-us,office.12).gif Name Specifies the name of an object. Read-only.
Aa342261.properties(en-us,office.12).gif NameU Specifies the universal name of a Master object. Read/write.
Aa342261.properties(en-us,office.12).gif NewBaseID Generates a new base ID for a master. Read-only.
Aa342261.properties(en-us,office.12).gif ObjectType Returns an object's type. Read-only.
Aa342261.properties(en-us,office.12).gif OLEObjects Returns the OLEObjects collection of a master. Read-only.
Aa342261.properties(en-us,office.12).gif OneD Determines whether an object behaves as a one-dimensional (1-D) object. Read-only.
Aa342261.properties(en-us,office.12).gif Original Returns the original master that produced this open master. Read-only.
Aa342261.properties(en-us,office.12).gif PageSheet Returns the page sheet (an object that represents the ShapeSheet spreadsheet) of a master. Read-only.
Aa342261.properties(en-us,office.12).gif PatternFlags Determines whether a master behaves as a custom pattern. Read/write.
Aa342261.properties(en-us,office.12).gif PersistsEvents Indicates whether an object is capable of containing persistent events in its EventList collection. Read-only.
Aa342261.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.
Aa342261.properties(en-us,office.12).gif Prompt Gets or sets the prompt string for a master or master shortcut. Read/write.
Aa342261.properties(en-us,office.12).gif Shapes Returns the Shapes collection for a page, master, or group. Read-only.
Aa342261.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.
Aa342261.properties(en-us,office.12).gif Stat Returns status information for an object. Read-only.
Aa342261.properties(en-us,office.12).gif Type Returns the type of the Master object. Read-only.
Aa342261.properties(en-us,office.12).gif UniqueID Returns the unique ID of a master. Read-only.

Events

  Name Description
Aa342261.events(en-us,office.12).gif BeforeMasterDelete Occurs before a master is deleted from a document.
Aa342261.events(en-us,office.12).gif BeforeSelectionDelete Occurs before selected objects are deleted.
Aa342261.events(en-us,office.12).gif BeforeShapeDelete Occurs before a shape is deleted.
Aa342261.events(en-us,office.12).gif BeforeShapeTextEdit Occurs before a shape is opened for text editing in the user interface.
Aa342261.events(en-us,office.12).gif CellChanged Occurs after the value changes in a cell in a document.
Aa342261.events(en-us,office.12).gif ConnectionsAdded Occurs after connections have been established between shapes.
Aa342261.events(en-us,office.12).gif ConnectionsDeleted Occurs after connections between shapes have been removed.
Aa342261.events(en-us,office.12).gif ConvertToGroupCanceled Occurs after an event handler has returned True (cancel) to a QueryCancelConvertToGroup event.
Aa342261.events(en-us,office.12).gif FormulaChanged Occurs after a formula changes in a cell in the object that receives the event.
Aa342261.events(en-us,office.12).gif GroupCanceled Occurs after an event handler has returned True (cancel) to a QueryCancelGroup event.
Aa342261.events(en-us,office.12).gif MasterChanged Occurs after properties of a master are changed and propagated to its instances.
Aa342261.events(en-us,office.12).gif MasterDeleteCanceled Occurs after an event handler has returned True (cancel) to a QueryCancelMasterDelete event.
Aa342261.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.
Aa342261.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.
Aa342261.events(en-us,office.12).gif QueryCancelMasterDelete Occurs before the application deletes a master in response to a user action in the interface. If any event handler returns True, the operation is canceled.
Aa342261.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.
Aa342261.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.
Aa342261.events(en-us,office.12).gif SelectionAdded Occurs after one or more shapes are added to a document.
Aa342261.events(en-us,office.12).gif SelectionDeleteCanceled Occurs after an event handler has returned True (cancel) to a QueryCancelSelectionDelete event.
Aa342261.events(en-us,office.12).gif ShapeAdded Occurs after one or more shapes are added to a document.
Aa342261.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.
Aa342261.events(en-us,office.12).gif ShapeDataGraphicChanged Occurs after a data graphic is applied to or deleted from a shape.
Aa342261.events(en-us,office.12).gif ShapeExitedTextEdit Occurs after a shape is no longer open for interactive text editing.
Aa342261.events(en-us,office.12).gif ShapeParentChanged Occurs after shapes are grouped or a group is ungrouped.
Aa342261.events(en-us,office.12).gif TextChanged Occurs after the text of a shape is changed in a document.
Aa342261.events(en-us,office.12).gif UngroupCanceled Occurs after an event handler has returned True (cancel) to a QueryCancelUngroup event.