Table of contents

Masters.ShapeDataGraphicChanged 事件 (Visio)Masters.ShapeDataGraphicChanged Event (Visio)

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

将数据图形应用到形状或从形状中删除之后发生。Occurs after a data graphic is applied to or deleted from a shape.

请注意 此 Visio 对象或成员是仅供授权用户的 Visio 专业 2013年。Note This Visio object or member is available only to licensed users of Visio Professional 2013.


专用子_表达式__ShapeDataGraphicChanged( ByVal 形状为 IVSHAPE )Private Sub expressionShapeDataGraphicChanged( **_ByVal Shape As IVSHAPE** )

表达式_一个表达式,返回一个主控形状_expression An expression that returns a Masters object.


名称Name必需/可选Required/Optional数据类型Data Type说明Description
形状Shape必需Required[IVSHAPE][IVSHAPE]数据图形应用于或者从中删除数据图形的形状。The shape to which the data graphic was applied or from which it was deleted.


数据图形是类型visTypeDataGraphic对象。重新应用于形状已应用于形状的主控形状相同时, ShapeDataGraphicChanged事件不会触发,即使最初应用之后已修改主控形状。如果,然而,不同的数据图形主控形状应用于形状时,会触发该事件。A data graphic is a Master object of type visTypeDataGraphic . When the same master that is already applied to a shape is re-applied to the shape, the ShapeDataGraphicChanged event does not fire, even if the master has been modified since it was applied originally. If, however, a different data graphic master is applied to the shape, the event does fire.

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

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

© 2018 Microsoft