Partager via


Shape.CalloutTarget Property (Visio)

Gets or sets the target shape that is associated with the callout shape by a callout relationship. Read/write.

Version Information

Version Added: Visio 2010

Syntax

expression .CalloutTarget

expression A variable that represents a Shape object.

Return Value

Shape

Remarks

If you attempt to get or set the CalloutTarget property value on a shape that is not a callout, Microsoft Visio will return an Inappropriate Source Object error.

If no target shape is associated with the callout shape, the CalloutTarget property returns Nothing. Setting the property value to Nothing removes any target shapes that are associated with the callout shape.

Example

The following Visual Basic for Applications (VBA) example shows how to use the CalloutTarget property to set the target shape of a callout.

Set vsoShape = vsoCalloutShape.CalloutTarget