Class CalloutFormat (Word VBA)

Contains properties and methods that apply to line callouts.


To use a CalloutFormat class variable it first needs to be instantiated, for example

Dim cft as CalloutFormat
Set cft = ActiveDocument.Background.Callout

The following procedures can be used to set variables of type CalloutFormat: Shape.Callout and ShapeRange.Callout


Accent true if a vertical accent bar separates the callout text from the callout line.

ActiveDocument.Background.Callout.Accent =

Angle returns or sets the angle of the callout line.

ActiveDocument.Background.Callout.Angle =

AutoLength msoTrue to automatically sets the length of the callout line.

Dim mtsAutoLength As Office.MsoTriState
mtsAutoLength = ActiveDocument.Background.Callout.AutoLength

Border returns or sets whether the text in the specified callout is surrounded by a border.

ActiveDocument.Background.Callout.Border =

Drop returns the vertical distance (in points) from the edge of the text bounding box to the place where the callout line attaches to the text box.

Dim sngDrop As Single
sngDrop = ActiveDocument.Background.Callout.Drop

DropType returns a value that indicates where the callout line attaches to the callout text box.

Dim mcdDropType As Office.MsoCalloutDropType
mcdDropType = ActiveDocument.Background.Callout.DropType

Gap returns or sets the horizontal distance (in points) between the end of the callout line and the text bounding box.

ActiveDocument.Background.Callout.Gap =

Length returns the length (in points) of the first segment of the callout line (the segment attached to the text callout box).

Dim sngLength As Single
sngLength = ActiveDocument.Background.Callout.Length

Parent returns an object that represents the parent object of the specified CalloutFormat object.

Dim objParent As Object
Set objParent = ActiveDocument.Background.Callout.Parent

Type returns or sets the callout type.

ActiveDocument.Background.Callout.Type =