Selection Object Members

Visio Automation Reference

Represents a subset of Shape objects for a page or master to which an operation can be applied.

Methods

  Name Description
Aa342281.methods(en-us,office.12).gif AddToGroup Adds the selected shapes to the selected group.
Aa342281.methods(en-us,office.12).gif Align Aligns two or more selected shapes. Returns Nothing.
Aa342281.methods(en-us,office.12).gif AutomaticLink Links selected shapes to data rows in the specified data recordset automatically, without requiring you to specify the exact correspondence of all shapes and data rows. Returns the number of shapes linked.
Aa342281.methods(en-us,office.12).gif BoundingBox Returns a rectangle that tightly encloses the shapes of a selection.
Aa342281.methods(en-us,office.12).gif BreakLinkToData Breaks links between all shapes in the selection and data rows in the specified data recordset.
Aa342281.methods(en-us,office.12).gif BringForward Brings the shape or selected shapes forward one position in the z-order.
Aa342281.methods(en-us,office.12).gif BringToFront Brings the shape or selected shapes to the front of the z-order.
Aa342281.methods(en-us,office.12).gif Combine Creates a new shape by combining selected shapes.
Aa342281.methods(en-us,office.12).gif ConnectShapes Connects two or more selected shapes with a dynamic connector. ReturnsNothing.
Aa342281.methods(en-us,office.12).gif ConvertToGroup Converts a selection or an object from another application (a linked or embedded object) to a group.
Aa342281.methods(en-us,office.12).gif Copy Copies a selection to the Clipboard.
Aa342281.methods(en-us,office.12).gif Cut Deletes a selection and places it on the Clipboard.
Aa342281.methods(en-us,office.12).gif Delete Deletes an object or selection.
Aa342281.methods(en-us,office.12).gif DeselectAll Deselects all shapes in a window or selection.
Aa342281.methods(en-us,office.12).gif Distribute Distributes three or more selected shapes at regular intervals on the drawing page. The order of selection is irrelevant. Returns Nothing.
Aa342281.methods(en-us,office.12).gif DrawRegion Draws a new shape that represents the region containing a given point.
Aa342281.methods(en-us,office.12).gif Duplicate Duplicates a selection.
Aa342281.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.
Aa342281.methods(en-us,office.12).gif FitCurve Reduces the number of geometry segments in a shape or shapes by replacing them with similar spline, arc, and line segments that approximate the paths of the initial segments. Typically, this reduces the number of segments in the shape.
Aa342281.methods(en-us,office.12).gif Flip Flips selected shapes either as a group or individually about their pins. Returns Nothing.
Aa342281.methods(en-us,office.12).gif FlipHorizontal Flips an object horizontally.
Aa342281.methods(en-us,office.12).gif FlipVertical Flips an object vertically.
Aa342281.methods(en-us,office.12).gif Fragment Breaks selected shapes into smaller shapes.
Aa342281.methods(en-us,office.12).gif GetIDs Gets the shape IDs of the shapes in the selection.
Aa342281.methods(en-us,office.12).gif Group Groups the objects that are selected in a selection, or it converts a shape into a group.
Aa342281.methods(en-us,office.12).gif Intersect Creates one closed shape from the area in which selected shapes overlap or intersect.
Aa342281.methods(en-us,office.12).gif Join Creates a new shape by joining selected shapes.
Aa342281.methods(en-us,office.12).gif Layout Lays out the shapes and/or reroutes the connectors for the page, master, group, or selection.
Aa342281.methods(en-us,office.12).gif LinkToData Links a selection of shapes to a single data row in a data recordset.
Aa342281.methods(en-us,office.12).gif Move Moves a selection a specified distance. Returns Nothing.
Aa342281.methods(en-us,office.12).gif Offset Offsets a selection a specified amount.
Aa342281.methods(en-us,office.12).gif RemoveFromGroup Removes selected shapes from a group.
Aa342281.methods(en-us,office.12).gif ReverseEnds Reverses an object by flipping it both horizontally and vertically.
Aa342281.methods(en-us,office.12).gif Rotate Rotates selected shapes either as a group or individually about their pins.
Aa342281.methods(en-us,office.12).gif Rotate90 Rotates an object 90 degrees counterclockwise.
Aa342281.methods(en-us,office.12).gif Select Selects or deselects an object.
Aa342281.methods(en-us,office.12).gif SelectAll Selects all possible shapes in a window or selection.
Aa342281.methods(en-us,office.12).gif SendBackward Moves a shape or selected shapes back one position in the z-order.
Aa342281.methods(en-us,office.12).gif SendToBack Moves the shape or selected shapes to the back of the z-order.
Aa342281.methods(en-us,office.12).gif Subtract Subtracts the areas that overlap the selected shape.
Aa342281.methods(en-us,office.12).gif SwapEnds Swaps the begin and end points of a one-dimensional (1-D) shape.
Aa342281.methods(en-us,office.12).gif Trim Trims selected shapes into smaller shapes.
Aa342281.methods(en-us,office.12).gif Ungroup Ungroups a group.
Aa342281.methods(en-us,office.12).gif Union Creates a new shape from the perimeter of selected shapes.
Aa342281.methods(en-us,office.12).gif UpdateAlignmentBox Updates the alignment box for a shape.

Properties

  Name Description
Aa342281.properties(en-us,office.12).gif Application Read-only. Returns the instance of Microsoft Office Visio that is associated with an object.
Aa342281.properties(en-us,office.12).gif ContainingMaster Returns the Master object that contains an object. Read-only.
Aa342281.properties(en-us,office.12).gif ContainingMasterID Returns the ID of the Master object that contains an object. Read-only.
Aa342281.properties(en-us,office.12).gif ContainingPage Returns the page that contains an object.
Aa342281.properties(en-us,office.12).gif ContainingPageID Returns the ID of the page that contains an object. Read-only
Aa342281.properties(en-us,office.12).gif ContainingShape Returns the Shape object that contains an object or collection. Read-only
Aa342281.properties(en-us,office.12).gif Count Returns the number of objects in a collection. Read-only.
Aa342281.properties(en-us,office.12).gif DataGraphic Gets the data graphic master (Master object of type visTypeDataGraphic) of the primary shape in the selection. Sets the data graphic master of all shapes in the selection. Read/write.
Aa342281.properties(en-us,office.12).gif Document Gets the Document object that is associated with an object. Read-only.
Aa342281.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.
Aa342281.properties(en-us,office.12).gif FillStyle Returns or sets the fill style for an object. Read/write.
Aa342281.properties(en-us,office.12).gif FillStyleKeepFmt Applies a fill style to an object while preserving local formatting. Read/write.
Aa342281.properties(en-us,office.12).gif Item Returns an object from a collection. The Item property is the default property for all collections, and for the Path and Selection objects. Read-only.
Aa342281.properties(en-us,office.12).gif ItemStatus Indicates if an item in a Selection object is subselected, if the group to which it belongs is selected, or if it is the primary item. Read-only.
Aa342281.properties(en-us,office.12).gif IterationMode Determines whether a Selection object reports subselected shapes and groups in which a shape is selected. Read/write.
Aa342281.properties(en-us,office.12).gif LineStyle Specifies the line style for an object. Read/write.
Aa342281.properties(en-us,office.12).gif LineStyleKeepFmt Applies a line style to an object while preserving local formatting. Read/write.
Aa342281.properties(en-us,office.12).gif ObjectType Returns an object's type. Read-only.
Aa342281.properties(en-us,office.12).gif PersistsEvents Indicates whether an object is capable of containing persistent events in its EventList collection. Read-only.
Aa342281.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.
Aa342281.properties(en-us,office.12).gif PrimaryItem Returns the Shape object that is a Selection object's primary item. Read-only.
Aa342281.properties(en-us,office.12).gif Stat Returns status information for an object. Read-only.
Aa342281.properties(en-us,office.12).gif Style Gets or sets the style for a Selection object. Read/write.
Aa342281.properties(en-us,office.12).gif StyleKeepFmt Applies a style to an object while preserving local formatting. Read/write
Aa342281.properties(en-us,office.12).gif TextStyle Gets or sets the text style for an object. Read/write.
Aa342281.properties(en-us,office.12).gif TextStyleKeepFmt Applies a text style to an object while preserving local formatting. Read/write.