InsertPictureFrame()

ShapeCollection::InsertPictureFrame(int32_t, ShapeType, float, float, float, float, System::SharedPtr<IPPImage>) method

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

System::SharedPtr<IPictureFrame> Aspose::Slides::ShapeCollection::InsertPictureFrame(int32_t index, ShapeType shapeType, float x, float y, float width, float height, System::SharedPtr<IPPImage> image) override

Arguments

ParameterTypeDescription
indexint32_tThe zero-based index at which value should be inserted.
shapeTypeShapeTypeThe 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 | float | The X-coordinate for a left side of shape’s frame. | | y | float | The Y-coordinate for a top side of shape’s frame. | | width | float | The width of shape’s frame. | | height | float | The height of shape’s frame. | | image | System::SharedPtr<IPPImage> | The image of picture frame. |

Return Value

Created PictureFrame object.

See Also