Partager via


CanvasShapes.AddCallout Method

Adds a borderless line callout to a drawing canvas.

Namespace:  Microsoft.Office.Interop.Word
Assembly:  Microsoft.Office.Interop.Word (in Microsoft.Office.Interop.Word.dll)

Syntax

'Declaration
Function AddCallout ( _
    Type As MsoCalloutType, _
    Left As Single, _
    Top As Single, _
    Width As Single, _
    Height As Single _
) As Shape
'Usage
Dim instance As CanvasShapes
Dim Type As MsoCalloutType
Dim Left As Single
Dim Top As Single
Dim Width As Single
Dim Height As Single
Dim returnValue As Shape

returnValue = instance.AddCallout(Type, _
    Left, Top, Width, Height)
Shape AddCallout(
    MsoCalloutType Type,
    float Left,
    float Top,
    float Width,
    float Height
)

Parameters

  • Type
    Type: MsoCalloutType
    The type of callout.
  • Left
    Type: System.Single
    The position, in points, of the left edge of the callout's bounding box.
  • Top
    Type: System.Single
    The position, in points, of the top edge of the callout's bounding box.
  • Width
    Type: System.Single
    The width, in points, of the callout's bounding box.
  • Height
    Type: System.Single
    The height, in points, of the callout's bounding box.

Return Value

Type: Microsoft.Office.Interop.Word.Shape

Remarks

You can insert a greater variety of callouts, such as balloons and clouds, using the AddShape method.

See Also

Reference

CanvasShapes Interface

CanvasShapes Members

Microsoft.Office.Interop.Word Namespace