CalloutFormat object (Publisher)
Contains properties and methods that apply to line callouts.
Remarks
Use the Callout property of the Shape object to return a CalloutFormat object.
Example
The following example adds a callout to the active publication, adds text to the callout, and then specifies the following attributes for the callout:
- A vertical accent bar separates the text from the callout line (Accent property).
- The angle between the callout line and the side of the callout text box is 30 degrees (Angle property).
- There is no border around the callout text (Border property).
- The callout line is attached to the top of the callout text box (PresetDrop method).
- The callout line contains three segments (Type property).
Sub AddFormatCallout()
With ActiveDocument.Pages(1).Shapes.AddCallout(Type:=msoCalloutOne, _
Left:=150, Top:=150, Width:=200, Height:=100)
With .TextFrame.TextRange
.Text = "This is a callout."
With .Font
.Name = "Stencil"
.Bold = msoTrue
.Size = 30
End With
End With
With .Callout
.Accent = MsoTrue
.Angle = msoCalloutAngle30
.Border = MsoFalse
.PresetDrop msoCalloutDropTop
.Type = msoCalloutThree
End With
End With
End Sub
Methods
Properties
See also
Support and feedback
Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.