Table of contents
TOC
Collapse the table of content
Expand the table of content

CalloutFormat.PresetDrop Method (Publisher)

office 365 dev account|Last Updated: 8/24/2017
|
3 Contributors

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 is a specified distance from the top or bottom of the text box.

Syntax

expression. PresetDrop( DropType)

_expression_A variable that represents a CalloutFormat object.

Parameters

NameRequired/OptionalData TypeDescription
DropTypeRequiredMsoCalloutDropTypeThe starting position of the callout line relative to the text bounding box.

Remarks

The DropType parameter can be one of the MsoCalloutDropType constants declared in the Microsoft Office type library and shown in the following table.

| msoCalloutDropBottom| | msoCalloutDropCenter| | msoCalloutDropCustom| | msoCalloutDropTop|

Example

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

ActiveDocument.Pages(1).Shapes(1).Callout.PresetDrop DropType:=msoCalloutDropTop

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

With ActiveDocument.Pages(1).Shapes(1).Callout 
 Select Case .DropType 
 Case msoCalloutDropTop 
 .PresetDrop DropType:=msoCalloutDropBottom 
 Case msoCalloutDropBottom 
 .PresetDrop DropType:=msoCalloutDropTop 
 End Select 
End With 
© 2018 Microsoft