IShapeCollectionInsertPictureFrame Method

Creates a new PictureFrame and inserts it to the collection at the specified index.

Namespace:  Aspose.Slides
Assembly:  Aspose.Slides (in Aspose.Slides.dll) Version: 21.11.0.0 (21.11)
Syntax
IPictureFrame InsertPictureFrame(
	int index,
	ShapeType shapeType,
	float x,
	float y,
	float width,
	float height,
	IPPImage image
)

Parameters

index
Type: SystemInt32
The zero-based index at which value should be inserted.
shapeType
Type: Aspose.SlidesShapeType

The shape contained in the set ShapeType of shapes, except all sorts of lines:

ShapeType.Line,

ShapeType.StraightConnector1,

ShapeType.BentConnector2,

ShapeType.BentConnector3,

ShapeType.BentConnector4,

ShapeType.BentConnector5,

ShapeType.CurvedConnector2,

ShapeType.CurvedConnector3,

ShapeType.CurvedConnector4,

ShapeType.CurvedConnector5.

x
Type: SystemSingle
The X-coordinate for a left side of shape's frame.
y
Type: SystemSingle
The Y-coordinate for a top side of shape's frame.
width
Type: SystemSingle
The width of shape's frame.
height
Type: SystemSingle
The height of shape's frame.
image
Type: Aspose.SlidesIPPImage
The image of picture frame.

Return Value

Type: IPictureFrame
Created PictureFrame object.
See Also