Expand Minimize
This topic has not yet been rated - Rate this topic

Selection.ReplaceShape Method (Visio)

Office 2013

Published: July 16, 2012

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.

Parameters

Name

Required/Optional

Data type

Description

MasterOrMasterShortcutToDrop

Required

UNKNOWN

Specifies the replacement shape or shapes to drop. Must be either a Master or MasterShortcut object.

ReplaceFlags

Optional

INT32

Specifies 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

SAFE-ARRAY

Remarks

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

Did you find this helpful?
(1500 characters remaining)
© 2013 Microsoft. All rights reserved.