CalloutFormat.DropType property (Publisher)

Returns an MsoCalloutDropType constant indicating where the callout line attaches to the callout text box. Read-only.

Syntax

expression.DropType

expression A variable that represents a CalloutFormat object.

Return value

MsoCalloutDropType

Remarks

The DropType property value can be one of the MsoCalloutDropType constants declared in the Microsoft Office type library.

If the callout drop type is msoCalloutDropCustom, the values of the Drop and AutoAttach properties and the relative positions of the callout text box and callout line origin (where the callout points) are used to determine where the callout line attaches to the text box.

Use the PresetDrop method to set the value of this property.

Example

This example replaces the custom drop for the first shape in the active publication with one of two preset drops, depending on whether the custom drop value is greater than or less than half the height of the callout text box. For the example to work, the shape must be a callout.

With ActiveDocument.Pages(1).Shapes(1).Callout 
 If .DropType = msoCalloutDropCustom Then 
 If .Drop < .Parent.Height / 2 Then 
 .PresetDrop DropType:=msoCalloutDropTop 
 Else 
 .PresetDrop DropType:=msoCalloutDropBottom 
 End If 
 End If 
End With 

Support and feedback

Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.