Share via


CalloutFormat.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). Read-only.

Namespace:  Microsoft.Office.Interop.PowerPoint
Assembly:  Microsoft.Office.Interop.PowerPoint (in Microsoft.Office.Interop.PowerPoint.dll)

Syntax

'Declaration
ReadOnly Property Length As Single
    Get
'Usage
Dim instance As CalloutFormat
Dim value As Single

value = instance.Length
float Length { get; }

Property Value

Type: System.Single

Remarks

Applies only to callouts whose lines consist of more than one segment (types msoCalloutThree and msoCalloutFour). Use the CustomLength(Single) method to set the value of this property for the CalloutFormat object.

Examples

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

Set myDocument = ActivePresentation.Slides(1)

With myDocument.Shapes

    With .Item("co1").Callout

        If Not .AutoLength Then len1 = .LengthEnd With

    If len1 Then .Item("co2").Callout.CustomLength len1

End With

See Also

Reference

CalloutFormat Interface

CalloutFormat Members

Microsoft.Office.Interop.PowerPoint Namespace