Table of contents
Collapse the table of content
Expand the table of content

Selection.ReplaceShape Method (Visio)

office 365 dev account|Last Updated: 6/12/2017
1 Contributor

Replaces the specified selection with one or more instances of the master passed as the first parameter, and returns an array containing the new shape or shapes.


expression . ReplaceShape(MasterOrMasterShortcutToDrop,ReplaceFlags)

expression A variable that represents a Selection object.


NameRequired/OptionalData typeDescription
MasterOrMasterShortcutToDropRequiredUNKNOWNSpecifies the replacement shape or shapes to drop. Must be either a Master orMasterShortcut object.
ReplaceFlagsOptionalINT32Specifies the properties of the original shape or shapes to retain in the new shape or shapes. Possible values include any of the VisReplaceFlags constants, and certain combinations of those constants. See Remarks for more information.

Return value



Allowable values to pass for the ReplaceFlags parameter include either visReplaceShapeDefault or any combination of one or more of the remaining four flags.

See also


Selection Object

© 2018 Microsoft