Skip to content

Latest commit

 

History

History
39 lines (21 loc) · 1.29 KB

Visio.shape.replaceshape.md

File metadata and controls

39 lines (21 loc) · 1.29 KB
title ms.assetid ms.date ms.localizationpriority
Shape.ReplaceShape method (Visio)
b330a63d-4e3f-0c4d-c38c-6ee806670225
06/08/2017
medium

Shape.ReplaceShape method (Visio)

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

Syntax

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

Remarks

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

[!includeSupport and feedback]