FormatCallout

Syntax

FormatCallout [.Type = number] [, .Gap = number or text] [, .Angle = number] [, .Drop = text] [, .Length = number or text] [, .Border = number] [, .AutoAttach = number] [, .Accent = number]

Remarks

Sets options for callout drawing objects. The arguments for the FormatCallout statement correspond to the options in the Format Callout dialog box (Format Callout button, Drawing toolbar).

Argument

Explanation

.Type

Specifies the type of callout:

0 (zero) One line segment (vertical or horizontal)

1 One line segment (vertical, horizontal, or diagonal)

2 Two line segments

3 Three line segments

.Gap

Specifies the distance between the callout line and the rectangle bounding the text area, in points or a text measurement.

.Angle

Specifies the angle for the callout line (affects the outermost line segment if .Type is set to 2 or 3):

0 (zero) Any; Word adjusts the angle automatically as you move and size the callout.

1 30 degrees

2 45 degrees

3 60 degrees

4 90 degrees

.Drop

Specifies the starting position of the callout line with respect to the rectangle bounding the text area:

Top Top of the text area (or if .Type is set to 1 and the line segment is horizontal, the right edge of the text area)

Center Center of the text area

Bottom Bottom of the text area (or if .Type is set to 1 and the line segment is horizontal, the left edge of the text area)

You can also specify a positive text measurement for the distance between the top of the text area and the starting point of the callout line.

.Length

If .Type is set to 2 or 3, the length of the first segment in the callout line in twips (20 twips = 1 point) or a text measurement, or "Best Fit" if you want Word to adjust the length automatically as you size and position the callout.

.Border

If 1, applies a border around the callout text.

.AutoAttach

If 1, changes the starting position of the callout line automatically when the callout origin or the callout text is switched from left to right.

.Accent

If 1, adds a vertical line next to the text area.


For an example, see DrawCallout.

See Also

DrawCallout, DrawGetCalloutTextBox, DrawSetCalloutTextBox, FormatDrawingObject