Shapes.AddCallout Method

Creates a borderless line callout. Returns a Shape object that represents the new callout.

Namespace:  Microsoft.Office.Interop.Excel
Assembly:  Microsoft.Office.Interop.Excel (in Microsoft.Office.Interop.Excel.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 Shapes
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: Microsoft.Office.Core.MsoCalloutType

    Required MsoCalloutType. The type of callout line. Can be one of these MsoCalloutType constants:

    msoCalloutOne. A single-segment callout line that can be either horizontal or vertical.

    msoCalloutTwo. A single-segment callout line that rotates freely.

    msoCalloutMixed.

    msoCalloutThree. A two-segment line.

    msoCalloutFour. A three-segment line.

  • Left
    Type: System.Single

    Required Single. The position (in points) of the upper-left corner of the callout's bounding box relative to the upper-left corner of the document.

  • Top
    Type: System.Single

    Required Single. The position (in points) of the upper-left corner of the callout's bounding box relative to the upper-left corner of the document.

  • Width
    Type: System.Single

    Required Single. The width of the callout's bounding box, in points.

  • Height
    Type: System.Single

    Required Single. The height of the callout's bounding box, in points.

Return Value

Type: Microsoft.Office.Interop.Excel.Shape

Remarks

You can insert a greater variety of callouts by using the AddShape method.

See Also

Reference

Shapes Interface

Shapes Members

Microsoft.Office.Interop.Excel Namespace