Table of contents
TOC
折叠目录
展开目录

Masters.Drop 方法 (Visio)Masters.Drop Method (Visio)

office 365 dev account|上次更新日期: 2018/3/13
|
2 参与人员

通过将一个对象放在接收对象如模具或文档中或母版MasterShortcuts集合中创建新的主控形状对象。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.

语法Syntax

表达式拖放( ObjectToDropxPosyPos )expression . Drop( ObjectToDrop , xPos , yPos )

表达式_一个表示主机对象的变量。_expression A variable that represents a Masters object.

参数Parameters

名称Name必需/可选Required/Optional数据类型Data Type说明Description
ObjectToDropObjectToDrop必需Required[未知][UNKNOWN]要删除的对象。尽管这通常是 Visio主控形状形状选择对象等对象,它可以提供更多信息接口的任何 OLE 对象。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.
xPosxPos必需RequiredIntegerInteger放置形状宽度的中心的 x 轴坐标值或 PinX。The x-coordinate at which to place the center of the shape's width or PinX.
yPosyPos必需RequiredIntegerInteger放置形状高度的中心的 y 轴坐标值或 PinY。The y-coordinate at which to place the center of the shape's height or PinY.

返回值Return Value

MasterMaster

注解Remarks

使用拖放方法是类似于使用鼠标移动形状。删除对象 ( ObjectToDrop) 可以是主控形状或绘图页上的形状。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.

如果_ObjectToDrop_ 主机,主机的针被丢弃在指定的坐标处。主控形状的针是旋转的经常,但不是一定是旋转的在它中心。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