Compartilhar via


CalloutFormat.Length Property

Word Developer Reference

Returns the length (in points) of the first segment of the callout line (the segment attached to the text callout box). Read-only Single.

Syntax

expression.Length

expression   An expression that returns a CalloutFormat object.

Remarks

The Length property returns a value only when the AutoLength property of the specified callout is set to False and applies only to callouts whose lines consist of more than one segment (types msoCalloutThree and msoCalloutFour).

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.

Visual Basic for Applications
  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

See Also