Table of contents
TOC
Collapse the table of content
Expand the table of content

Shapes.AddCallout Method (PowerPoint)

office 365 dev account|Last Updated: 6/12/2017
|
1 Contributor

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

Syntax

expression. AddCallout( Type, Left, Top, Width, Height )

expression A variable that represents a Shapes object.

Parameters

NameRequired/OptionalData TypeDescription
TypeRequiredMsoCalloutTypeThe type of callout line.
LeftRequiredSingleThe position, measured in points, of the left edge of the callout's bounding box relative to the left edge of the slide.
TopRequiredSingleThe position, measured in points, of the top edge of the callout's bounding box relative to the top edge of the slide.
WidthRequiredSingleThe width of the callout's bounding box, measured in points.
HeightRequiredSingleThe height of the callout's bounding box, measured in points.

Return Value

Shape

Remarks

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

Example

This example adds a borderless callout with a freely-rotating one-segment callout line to myDocument and then sets the callout angle to 30 degrees.

Sub NewCallout() 
    Dim sldOne As Slide 
    Set sldOne = ActivePresentation.Slides(1) 
    sldOne.Shapes.AddCallout(Type:=msoCalloutTwo, Left:=50, Top:=50, _ 
        Width:=200, Height:=100).Callout.Angle = msoCalloutAngle30 
End Sub

See also

Concepts

Shapes Object

© 2018 Microsoft