Class CalloutFormat (PowerPoint VBA)

Contains properties and methods that apply to line callouts.

Class Shape gives access to class CalloutFormat.


Dim cft as CalloutFormat
Set cft = ActiveWindow.RangeFromPoint.Callout

Methods

AutomaticLength - Specifies that the first segment of the callout line (the segment attached to the text callout box) be scaled automatically when the callout is moved. Use the CustomLength method to specify that the first segment of the callout line retain the fixed length returned by the Length property whenever the callout is moved. Applies only to callouts whose lines consist of more than one segment (types msoCalloutThree and msoCalloutFour).

CustomDrop - Sets 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. This distance is measured from the top of the text box unless the AutoAttach property is set to True and the text box is to the left of the origin of the callout line (the place that the callout points to). In this case the drop distance is measured from the bottom of the text box.

CustomLength - Specifies that the first segment of the callout line (the segment attached to the text callout box) retain a fixed length whenever the callout is moved.

PresetDrop - 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.

Properties

Accent determines whether a vertical accent bar separates the callout text from the callout line.

Angle returns or sets the angle of the callout line. If the callout line contains more than one line segment, this property returns or sets the angle of the segment that is farthest from the callout text box.

AutoAttach determines whether the place where the callout line attaches to the callout text box changes, depending on whether the origin of the callout line (where the callout points to) is to the left or right of the callout text box.

AutoLength determines whether the first segment of the callout retains the fixed length specified by the Length property, or is scaled automatically, whenever the callout is moved.

Border determines whether the text in the specified callout is surrounded by a border.

Drop for callouts with an explicitly set drop value, this property 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.

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

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

Length when the AutoLength property of the specified callout is set to False, the Length property returns the length (in points) of the first segment of the callout line (the segment attached to the text callout box).

Type represents the type of callout.