Export (0) Print
Expand All
Expand Minimize
1 out of 3 rated this helpful - Rate this topic

Shape.ReplaceShape Method (Visio)

Office 2013

Published: July 16, 2012

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

expression .ReplaceShape(MasterOrMasterShortcutToDrop,ReplaceFlags)

expression A variable that represents a Shape object.

Parameters

Name

Required/Optional

Data type

Description

MasterOrMasterShortcutToDrop

Required

UNKNOWN

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

ReplaceFlags

Optional

INT32

Specifies the properties of the original shape to retain in the new shape. Possible values include any of the VisReplaceFlags constants, and certain combinations of those constants. See Remarks for more information.

Return value

SHAPE

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

Concepts

Other resources

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.