Shape.SelectionDeleteCanceled 事件 (Visio)Shape.SelectionDeleteCanceled Event (Visio)

QueryCancelSelectionDelete事件的事件处理程序返回True (取消) 之后,发生此事件。Occurs after an event handler has returned True (cancel) to a QueryCancelSelectionDelete event.


Private Sub_表达式__ 'SelectionDeleteCanceled (ByVal 所选内容作为 [IVSELECTION])Private Sub expression _'SelectionDeleteCanceled'(ByVal Selection As [IVSELECTION])

_表达式_代表Shape对象的变量。expression A variable that represents a Shape object.


名称Name 必需/可选Required/Optional 数据类型Data type 说明Description
SelectionSelection 必需Required [IVSELECTION][IVSELECTION] 要删除的选定形状。The selection of shapes that was going to be deleted.


如果您使用 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对象,使用添加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 you want to create, see Event codes.