CalloutFormat.PresetDrop 方法 (Word)CalloutFormat.PresetDrop method (Word)

指定圖說文字線是連線在圖說文字方塊的頂端、底端還是中心,或者圖說文字線是連線在距圖說文字方塊的頂端有一定距離的位置上,還是距底端有一定距離的位置上。Specifies whether the callout line attaches to the top, bottom, or center of the callout text box or whether it attaches at a point that's a specified distance from the top or bottom of the text box.

語法Syntax

運算式PresetDrop(DropType)expression.PresetDrop (DropType)

需要 expressionexpression Required. 代表 'CalloutFormat' 物件的變數。A variable that represents a 'CalloutFormat' object.

參數Parameters

名稱Name 必要/選用Required/Optional 資料類型Data type 描述Description
DropTypeDropType 必要Required MsoCalloutDropTypeMsoCalloutDropType 相對於文字週框方塊的圖說文字線起點位置。The starting position of the callout line relative to the text bounding box. 如果您指定msoCalloutDropCustom,使用DropAutoAttach屬性的值和圖說文字文字方塊和圖說文字線起點 (圖說所指向的位置) 的相對位置來決定位置圖說線貼附於文字方塊。If you specify msoCalloutDropCustom, the values of the Drop and AutoAttach properties and the relative positions of the callout text box and callout line origin (the place that the callout points to) are used to determine where the callout line attaches to the text box.

範例Example

這則範例會針對使用中文件上的第一個圖案,指定圖說文字線附加至文字週框方塊的頂端。This example specifies that the callout line attach to the top of the text bounding box for the first shape on the active document. 為使本範例正常執行,第一個圖案必須是圖說文字。For the example to work, the first shape must be a callout.

ActiveDocument.Shapes(1).Callout.PresetDrop msoCalloutDropTop

這個範例會針對使用中文件上的第一個圖案,在兩個預設落點之間切換。This example switches between two preset drops for the first shape on the active document. 為使本範例正常執行,第一個圖案必須是圖說文字。For the example to work, the first shape must be a callout.

With ActiveDocument.Shapes(1).Callout 
 If .DropType = msoCalloutDropTop Then 
 .PresetDrop msoCalloutDropBottom 
 ElseIf .DropType = msoCalloutDropBottom Then 
 .PresetDrop msoCalloutDropTop 
 End If 
End With

請參閱See also

CalloutFormat 物件CalloutFormat Object

支援和意見反應Support and feedback

有關於 Office VBA 或這份文件的問題或意見反應嗎?Have questions or feedback about Office VBA or this documentation? 如需取得支援服務並提供意見反應的相關指導,請參閱 Office VBA 支援與意見反應Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.