InsertPictureFrame

IShapeCollection.InsertPictureFrame method

Creates a new picture frame containing the specified image and inserts it into the shape collection at the specified index.

public IPictureFrame InsertPictureFrame(int index, ShapeType shapeType, float x, float y, 
    float width, float height, IPPImage image)
ParameterTypeDescription
indexInt32The zero-based index at which to insert the picture frame.
shapeTypeShapeTypeSpecifies the shape type contained in ShapeType, except for all kinds of lines:
xSingleThe x-coordinate of the picture frame, in points.
ySingleThe y-coordinate of the picture frame, in points.
widthSingleThe width of the picture frame, in points.
heightSingleThe height of the picture frame, in points.
imageIPPImageThe IPPImage to display in the picture frame.

Return Value

The newly created IPictureFrame.

See Also