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

MasterShortcuts.Drop Method (Visio)

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

Creates a new Master object by dropping an object onto a receiving object such as a stencil or document, or the Masters or MasterShortcuts collection.


expression . Drop( ObjectToDrop , xPos , yPos )

expression A variable that represents a MasterShortcuts object.


NameRequired/OptionalData TypeDescription
ObjectToDropRequired[UNKNOWN]The object to drop. While this is typically a Visio object such as a Master , Shape , or Selection object, it can be any OLE object that provides an IDataObject interface.
xPosRequiredIntegerThe x-coordinate at which to place the center of the shape's width or PinX.
yPosRequiredIntegerThe y-coordinate at which to place the center of the shape's height or PinY.

Return Value



Using the Drop method is similar to moving a shape with the mouse. The object dropped ( ObjectToDrop) can be a master or a shape on the drawing page.

If ObjectToDrop is a Master , the pin of the master is dropped at the specified coordinates. A master's pin is often, but not necessarily, at its center of rotation.

© 2018 Microsoft