Share via


CalloutFormat.AutoLength Property

Publisher Developer Reference

Returns an MsoTriState constant indicating whether the first segment of the callout line is scaled when the callout is moved. Applies only to callouts whose lines consist of more than one segment (types msoCalloutThree and msoCalloutFour). Read-only.

Syntax

expression.AutoLength

expression   A variable that represents a CalloutFormat object.

Return Value
MsoTriState

Remarks

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

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

Example

This example switches between an automatically-scaling first segment and one with a fixed length for the callout line for the first shape in the publication. For the example to work, the shape must be a callout.

Visual Basic for Applications
  With ActiveDocument.Pages(1).Shapes(1).Callout
    If .AutoLength Then
        .CustomLength Length:=50
    Else
        .AutomaticLength
    End If
End With

See Also