Length Property

Microsoft Word Visual Basic

Length Property

       

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). Applies only to callouts whose lines consist of more than one segment (types msoCalloutThree and msoCalloutFour). Read-only Single.

expression.Length

expression   Required. An expression that returns a CalloutFormat object.

Remarks

This property is read-only. Use the CustomLength method to set the value of this property for the CalloutFormat object.

Example

This example specifies that if the first line segment in the callout named "co1" has a fixed length, then the length of the first line segment in the callout named "co2" will also be fixed at that same length. For the example to work, both callouts must have multiple-segment lines.

Dim sngLength As Single

With ActiveDocument.Shapes
    With .Item("co1").Callout
        If Not .AutoLength Then sngLength = .Length
    End With
    If sngLength Then _
        .Item("co2").Callout.CustomLength sngLength
End With