AutomaticLength 方法

       

指定在移动标注时标注线的第一段(附加到文本标注框的段)自动缩放。使用 CustomLength 方法指定在移动标注时标注线的第一段保持由 Length 属性返回的固定长度。仅应用于标注线包含多段的标注(msoCalloutThreemsoCalloutFour 类型)。

expression.AutomaticLength

expression  必选。该表达式返回一个 CalloutFormat 对象。

说明

应用此方法会将 AutoLength 属性设为 True

示例

本示例用来切换使第一段的长度可以调整或使用 myDocument 上第一个形状标注线的固定长度。要执行本示例,第一个形状必须是标注。

Set myDocument = ActivePresentation.Slides(1)
With myDocument.Shapes(1).Callout
    If .AutoLength Then
        .CustomLength 50
    Else
        .AutomaticLength
    End If
End With