Share via


CalloutFormat.PresetDrop Method

Word Developer Reference

Specifies whether the callout line attaches to the top, bottom, or center of the callout text box or whether it attaches at a point that's a specified distance from the top or bottom of the text box.

Syntax

expression.PresetDrop(DropType)

expression   Required. A variable that represents a CalloutFormat object.

Parameters

Name Required/Optional Data Type Description
DropType Required MsoCalloutDropType The starting position of the callout line relative to the text bounding box. If you specify msoCalloutDropCustom, the values of the Drop and AutoAttach properties and the relative positions of the callout text box and callout line origin (the place that the callout points to) are used to determine where the callout line attaches to the text box.

Example

This example specifies that the callout line attach to the top of the text bounding box for the first shape on the active document. For the example to work, the first shape must be a callout.

Visual Basic for Applications
  ActiveDocument.Shapes(1).Callout.PresetDrop msoCalloutDropTop

This example switches between two preset drops for the first shape on the active document. For the example to work, the first shape must be a callout.

Visual Basic for Applications
  With ActiveDocument.Shapes(1).Callout
    If .DropType = msoCalloutDropTop Then
        .PresetDrop msoCalloutDropBottom
    ElseIf .DropType = msoCalloutDropBottom Then
        .PresetDrop msoCalloutDropTop
    End If
End With

See Also