指定标注线的第一段(附加到文本标注框的段)在标注被移动时保持固定长度。使用 AutomaticLength 方法指定第一段在标注被移动时自动缩放。仅应用于标注线多于一段的标注(msoCalloutThree 和 msoCalloutFour 类型)。
expression.CustomLength(Length)
expression 必选。该表达式返回一个 CalloutFormat 对象。
Length 必选。Single 类型。标注的第一段的长度,以磅为单位。
应用该方法会将 AutoLength 属性设为 False,并将 Length 属性设为 Length 参数指定的值。
本示例在自动调整比例的第一段和具有固定长度的另一段之间切换 myDocument
的第一个形状的标注线。
Set myDocument = ActivePresentation.Slides(1)
With myDocument.Shapes(1).Callout
If .AutoLength Then
.CustomLength 50
Else
.AutomaticLength
End If
End With