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

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


表达式CalloutRelationshipDeleted(ShapePair)expression.CalloutRelationshipDeleted (ShapePair)

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


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


此事件返回的RelatedShapePairEvent对象包含两个形状: 容器和成员, 分别由**FromShapeID** 和**ToShapeID** 属性表示。The RelatedShapePairEvent object that this event returns contains two shapes: the container and the member, represented by the FromShapeID and the ToShapeID properties respectively. 当 Microsoft Visio 同时删除容器关系中的两个形状时 (例如, 当两个形状作为选定内容的一部分从绘图中删除) 时, 不会触发该事件。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.

如果要创建自己的Event对象, 请使用**Add** 或**AddAdvise** 方法。If you want to create your own Event objects, use the Add or AddAdvise method.

若要创建可运行加载项的 Event 对象,请使用 Add 方法,因为它适用于 EventList 集合。To create an Event object that runs an add-on, use the Add method as it applies to the EventList collection.

若要创建可接收通知的 Event 对象,请使用 AddAdvise 方法。To create an Event object that receives notification, use the AddAdvise method.

若要查找要创建的事件的事件代码,请参阅事件代码To find an event code for the event that you want to create, see Event codes.

支持和反馈Support and feedback

有关于 Office VBA 或本文档的疑问或反馈?Have questions or feedback about Office VBA or this documentation? 请参阅 Office VBA 支持和反馈,获取有关如何接收支持和提供反馈的指南。Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.