InsertPictureFrame

IShapeCollection.InsertPictureFrame method

Creates a new PictureFrame and inserts it to the 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 value should be inserted.
shapeTypeShapeTypeThe shape contained in the set ShapeType of shapes, except all sorts of lines:
xSingleThe X-coordinate for a left side of shape’s frame.
ySingleThe Y-coordinate for a top side of shape’s frame.
widthSingleThe width of shape’s frame.
heightSingleThe height of shape’s frame.
imageIPPImageThe image of picture frame.

Return Value

Created PictureFrame object.

See Also