Export (0) Print
Expand All
Expand Minimize

Shape Methods (Visio)

Office 2013

This object has the following methods:

Name

Description

AddGuide

Adds a guide to a group shape.

AddHyperlink

Adds a Hyperlink object to a Microsoft Visio shape.

AddNamedRow

Adds a row that has the specified name to the specified ShapeSheet section.

AddRow

Adds a row to a ShapeSheet section at a specified position.

AddRows

Adds the specified number of rows to a ShapeSheet section at a specified position.

AddSection

Adds a new section to a ShapeSheet spreadsheet.

AddToContainers

Adds the shape to all underlying containers that allow it as a member.

AutoConnect

Automatically draws a connection in the specified direction between the shape and another shape on the drawing page.

BoundingBox

Returns a rectangle that tightly encloses a shape.

BreakLinkToData

Breaks the link between the shape and the data row to which it is linked in the specified data recordset.

BringForward

Brings the shape or selected shapes forward one position in the z-order.

BringToFront

Brings the shape or selected shapes to the front of the z-order.

CenterDrawing

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

ChangePicture

Replaces the specified shape’s current picture with a new picture.

ConnectedShapes

Returns an array that contains the identifiers (IDs) of the shapes that are connected to the shape.

ConvertToGroup

Converts a selection or an object from another application (a linked or embedded object) to a group.

Copy

Copies a shape to the Clipboard.

CreateSelection

Creates various types of Selection objects.

CreateSubProcess

Creates and returns a new sub-process page that is linked to the shape.

Cut

Deletes an object or selection and places it on the Clipboard.

Delete

Deletes an object or selection.

DeleteEx

Deletes the additional shapes that are associated with the shape, such as connectors and unselected container members, when the shape is deleted.

DeleteRow

Deletes a row from a section in a ShapeSheet spreadsheet.

DeleteSection

Deletes a ShapeSheet section.

Disconnect

Unglues the specified connector end points and offsets them the specified amount from the shapes to which they were joined.

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 group shape.

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 group shape.

DrawPolyline

Creates a shape whose path is a polyline along a given set of points.

DrawQuarterArc

Creates a new 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 group. 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.

Duplicate

Duplicates an object.

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.

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.

FlipHorizontal

Flips an object horizontally.

FlipVertical

Flips an object vertically.

GetCustomPropertiesLinkedToData

Gets the IDs of the shape-data-item (custom property) rows in the Shape Data section of the shape's ShapeSheet spreadsheet linked to the specified data recordset.

GetCustomPropertyLinkedColumn

Gets the name of the data column linked to the shape data (custom property) row in the shape's ShapeSheet spreadsheet specified by the custom property index.

GetFormulas

Returns the formulas of many cells.

GetFormulasU

Returns the formulas of many cells.

GetLinkedDataRecordsetIDs

Gets the IDs of all the data recordsets that contain data rows linked to the shape.

GetLinkedDataRow

Gets the ID of the data row in the specified data recordset linked to the shape.

GetResults

Gets the results or formulas of many cells.

GluedShapes

Returns an array that contains the identifiers of the shapes that are glued to a shape.

Group

Groups the objects that are selected in a selection, or it converts a shape into a group.

HasCategory

Returns True if the specified category is in the shape categories list.

HitTest

Determines if a given x,y position hits outside, inside, or on the boundary of a shape.

Import

Imports a file into the current document.

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.

IsCustomPropertyLinked

Returns whether the shape data (custom property) row in the Shape Data section of the shape's ShapeSheet spreadsheet is linked to a data row in the specified data recordset.

Layout

Lays out the shapes or reroutes the connectors (or both) for the page, master, group, or selection.

LinkToData

Links a shape to a data row in a data recordset.

MoveToSubprocess

Moves the shape to the specified page and drops a replacement shape on the source page, then links it to the target page. Returns the selection of moved shapes on the target page.

Offset

Offsets a shape a specified amount.

OpenDrawWindow

Opens a new drawing window that displays a group.

OpenSheetWindow

Opens a ShapeSheet window for a Shape object.

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

RemoveFromContainers

Removes the shape from all lists and containers of which it is a member.

ReplaceShape

Replaces the specified shape with an instance of the master passed as the first parameter, and returns the new shape.

Resize

Resizes the shape by moving shape handles as specified.

ReverseEnds

Reverses an object by flipping it both horizontally and vertically.

Rotate90

Rotates an object 90 degrees counterclockwise.

SendBackward

Moves a shape or selected shapes back one position in the z-order.

SendToBack

Moves the shape or selected shapes to the back of the z-order.

SetBegin

Moves the begin point of a one-dimensional (1-D) shape to the coordinates represented by xPos and yPos.

SetCenter

Moves a shape so that its pin is positioned at the coordinates represented by xPos and yPos. .

SetEnd

Moves the endpoint of a one-dimensional (1-D) shape to the coordinates represented by xPos and yPos.

SetFormulas

Sets the formulas of one or more cells.

SetQuickStyle

Sets the quick style of the specified shape.

SetResults

Sets the results or formulas of one or more cells.

SwapEnds

Swaps the begin and endpoints of a one-dimensional (1-D) shape.

TransformXYFrom

Transforms a point expressed in the local coordinate system of one Shape object from an equivalent point expressed in the local coordinate system of another Shape object.

TransformXYTo

Transforms a point expressed in the local coordinate system of one Shape object to an equivalent point expressed in the local coordinate system of another Shape object.

Ungroup

Ungroups a group.

UpdateAlignmentBox

Updates the alignment box for a shape.

VisualBoundingBox

XYFromPage

Transforms a point expressed in the local coordinate system of its Page or Master object to an equivalent point expressed in the local coordinate system of the Shape object.

XYToPage

Transforms a point expressed in the local coordinate system of a Shape object to an equivalent point expressed in the local coordinate system of its Page or Master object.

Show:
© 2014 Microsoft