CalloutFormat.Border property (Publisher)

Returns or sets an MsoTriState constant indicating whether the text in the specified callout is surrounded by a border. Read/write.

Syntax

expression.Border

expression A variable that represents a CalloutFormat object.

Return value

MsoTriState

Remarks

The Border property value can be one of the MsoTriState constants declared in the Microsoft Office type library.

Example

This example adds an oval to the active publication and a callout that points to the oval. The callout text will have a border, but not a vertical accent bar that separates the text from the callout line.

With ActiveDocument.Pages(1).Shapes 
 ' Add an oval. 
 .AddShape Type:=msoShapeOval, _ 
 Left:=180, Top:=200, Width:=280, Height:=130 
 
 ' Add a callout. 
 With .AddCallout(Type:=msoCalloutTwo, _ 
 Left:=420, Top:=170, Width:=170, Height:=40) 
 
 ' Add text to the callout. 
 .TextFrame.TextRange.Text = "This is an oval" 
 
 ' Add an accent bar to the callout. 
 With .Callout 
 .Accent = msoFalse 
 .Border = msoTrue 
 End With 
 End With 
End With 

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.