Word) (CalloutFormat.AutoLength 屬性

MsoTrue 會自動設定圖說文字線的長度。 唯讀 MsoTriState

語法

運算式AutoLength

需要 expression。 代表 'CalloutFormat' 物件的變數。

註解

使用 AutomaticLength 方法可將此屬性設定為 msoTrue ,而使用 CustomLength 方法,將此屬性設定為 msoFalse

範例

本範例會建立新文件、將圖說文字新增至新文件,然後手動設定圖說文字的長度。

Sub AutoCalloutLength() 
 Dim docNew As Document 
 Dim shpCallout As Shape 
 Set docNew = Documents.Add 
 Set shpCallout = docNew.Shapes.AddCallout(Type:=msoCalloutFour, _ 
 Left:=15, Top:=15, Width:=150, Height:=200) 
 With shpCallout.Callout 
 If .AutoLength = msoTrue then 
 .CustomLength 50 
 End If 
 End With 
End Sub

另請參閱

CalloutFormat 物件

支援和意見反應

有關於 Office VBA 或這份文件的問題或意見反應嗎? 如需取得支援服務並提供意見反應的相關指導,請參閱 Office VBA 支援與意見反應