Shape.MoveToSubprocess Method (Visio)
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.
Version Information
Version Added: Visio 2010
Syntax
expression .MoveToSubprocess(Page, ObjectToDrop, NewShape)
expression A variable that represents a Shape object.
Parameters
Name |
Required/Optional |
Data Type |
Description |
---|---|---|---|
Page |
Required |
The sub-process page to which the shape should be moved. You cannot pass the current page. |
|
ObjectToDrop |
Required |
[UNKNOWN] |
The replacement shape to drop. |
NewShape |
Optional |
Shape |
Out parameter. Returns the shape that is linked to the new page. |
Return Value
Remarks
ObjectToDrop is typically a Microsoft Visio object, such as a Master or MasterShortcut object. However, it can be any OLE object that provides an IDataObject interface. If ObjectToDrop is null, Visio drops a default shape.