Método CalloutFormat. PresetDrop (Word)CalloutFormat.PresetDrop method (Word)
Especifica se a linha do texto explicativo é anexada à parte superior, à parte inferior ou ao centro da caixa do texto explicativo ou se ela é anexada em um ponto situado a uma distância especificada em relação à parte superior ou inferior da caixa de texto.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.
SintaxeSyntax
expressão. PresetDrop (DropType)expression.PresetDrop (DropType)
expressão Obrigatório.expression Required. Uma variável que representa um objeto 'CalloutFormat'.A variable that represents a 'CalloutFormat' object.
ParâmetrosParameters
NomeName | Obrigatório/OpcionalRequired/Optional | Tipo de dadosData type | DescriçãoDescription |
---|---|---|---|
DropTypeDropType | ObrigatórioRequired | MsoCalloutDropTypeMsoCalloutDropType | A posição inicial da linha do texto explicativo em relação à caixa delimitadora de texto.The starting position of the callout line relative to the text bounding box. Se você especificar msoCalloutDropCustom, os valores das propriedades drop e AutoAttach e as posições relativas da caixa do texto explicativo e da origem da linha de texto explicativo (o lugar para o qual o texto explicativo aponta) serão usados para determinar onde o linha do texto explicativo anexa à caixa de texto.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. |
ExemploExample
Este exemplo especifica que a linha do texto explicativo toca na parte superior do limite da caixa de texto da primeira forma no documento ativo.This example specifies that the callout line attach to the top of the text bounding box for the first shape on the active document. Para que o exemplo funcione, a primeira forma precisa ser um texto explicativo.For the example to work, the first shape must be a callout.
ActiveDocument.Shapes(1).Callout.PresetDrop msoCalloutDropTop
Este exemplo alterna entre dois posicionamentos predefinidos para a primeira forma no documento ativo.This example switches between two preset drops for the first shape on the active document. Para que o exemplo funcione, a forma um precisa ser um texto explicativo.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
Confira tambémSee also
Objeto CalloutFormatCalloutFormat Object
Suporte e comentáriosSupport and feedback
Tem dúvidas ou quer enviar comentários sobre o VBA para Office ou sobre esta documentação?Have questions or feedback about Office VBA or this documentation? Confira Suporte e comentários sobre o VBA para Office a fim de obter orientação sobre as maneiras pelas quais você pode receber suporte e fornecer comentários.Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.