Partager via


CalloutFormat.AutoLength Property (Word)

MsoTrue to automatically sets the length of the callout line. Read-only MsoTriState.

Syntax

expression .AutoLength

expression Required. A variable that represents a CalloutFormat object.

Remarks

Use the AutomaticLength method to set this property to msoTrue, and use the CustomLength method to set this property to msoFalse.

Example

This example creates a new document and adds a callout to the new document, and then sets the length of the callout manually.

Sub AutoCalloutLength() 
 Dim docNew As Document 
 Dim shpCallout As Shape 
 Set docNew = Documents.Add 
 Set shpCallout = docNew.Shapes.AddCallout(Type:=msoCalloutFour, _ 
 Left:=15, Top:=15, Width:=150, Height:=200) 
 With shpCallout.Callout 
 If .AutoLength = msoTrue then 
 .CustomLength 50 
 End If 
 End With 
End Sub

See Also

Concepts

CalloutFormat Object

CalloutFormat Object Members