Table of contents

Page.CalloutRelationshipDeleted 事件 (Visio)Page.CalloutRelationshipDeleted Event (Visio)

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

在从页面中删除标注关系时发生。Occurs when a callout relationship is deleted from the page.


专用子_表达式__CalloutRelationshipDeleted(由 Val ShapePair 与 RelatedShapePairEvent )Private Sub expressionCalloutRelationshipDeleted( **_By Val ShapePair As RelatedShapePairEvent** )

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


名称Name必需/可选Required/Optional数据类型Data Type说明Description
ShapePairShapePair必需RequiredRelatedShapePairEventRelatedShapePairEvent一个代表标注形状对的关系的对象。An object that represents the callout shape-pair relationship.


该事件返回的RelatedShapePairEvent对象包含两个形状: 容器和成员,由RelatedShapePairEvent.FromShapeIDRelatedShapePairEvent.ToShapeID属性分别。当 Microsoft Visio 中同时删除容器关系中的两个形状时,例如当这两个形状将被删除从属于选中某个选项,绘图不会引发。The RelatedShapePairEvent object that this event returns contains two shapes: the container and the member, represented by the RelatedShapePairEvent.FromShapeID and the RelatedShapePairEvent.ToShapeID properties respectively. When Microsoft Visio deletes both shapes in the container relationship simultaneously, for example when both shapes are deleted from a drawing as part of a selection, the event does not fire.

如果您使用 Microsoft Visual Basic 或 Visual Basic for Applications (VBA),则此主题中的语法描述的是一种通用而有效的事件处理方法。If you are using Microsoft Visual Basic or Visual Basic for Applications (VBA), the syntax in this topic describes a common, efficient way to handle events.

如果您想要创建您自己的事件对象,使用EventList.AddEventList.AddAdvise的方法。若要创建一个事件对象,运行加载项,请使用EventList.Add方法。若要创建一个事件对象,该对象接收通知,请使用EventList.AddAdvise方法。要查找您想要创建的事件的事件代码,请参阅事件代码If you want to create your own Event objects, use the EventList.Add or EventList.AddAdvise method. To create an Event object that runs an add-on, use the EventList.Add method. To create an Event object that receives notification, use the EventList.AddAdvise method. To find an event code for the event that you want to create, seeEvent Codes.

© 2018 Microsoft