Share via


CalloutFormat.CustomLength Method

Specifies that the first segment of the callout line (the segment attached to the text callout box) retain a fixed length whenever the callout is moved.

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

Syntax

'Declaration
Sub CustomLength ( _
    Length As Single _
)
'Usage
Dim instance As CalloutFormat
Dim Length As Single

instance.CustomLength(Length)
void CustomLength(
    float Length
)

Parameters

  • Length
    Type: System.Single
    The length of the first segment of the callout, in points.

Remarks

Use the AutomaticLength() method to specify that the first segment of the callout line be scaled automatically whenever the callout is moved. Applies only to callouts whose lines consist of more than one segment (types msoCalloutThree and msoCalloutFour).

Applying this method sets the AutoLength property to False and sets the Length property to the value specified for the Length argument.

Examples

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

Set myDocument = ActivePresentation.Slides(1)

With myDocument.Shapes(1).Callout

    If .AutoLength Then

        .CustomLength50

    Else

        .AutomaticLength

    End If

End With

See Also

Reference

CalloutFormat Interface

CalloutFormat Members

Microsoft.Office.Interop.PowerPoint Namespace