Shapes.AddShape Method

Office 2010

Creates an AutoShape. Returns a Shape object that represents the new AutoShape.

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

Shape AddShape(
	MsoAutoShapeType Type,
	float Left,
	float Top,
	float Width,
	float Height
)

Parameters

Type
Type: Microsoft.Office.Core.MsoAutoShapeType
Specifies the type of AutoShape to create.
Left
Type: System.Single
The position, measured in points, of the left edge of the AutoShape relative to the left edge of the slide.
Top
Type: System.Single
The position, measured in points, of the top edge of the AutoShape relative to the top edge of the slide.
Width
Type: System.Single
The width of the AutoShape, measured in points.
Height
Type: System.Single
The height of the AutoShape, measured in points.

To change the type of an AutoShape that you have added, set the AutoShapeType property.

Community Additions

ADD
Show:
© 2014 Microsoft