[]
        
(Showing Draft Content)

GrapeCity.Documents.Word.PictureCollection.Insert

Insert Method

Insert(InsertLocation)

Inserts a Picture into this collection at a specified location.

Declaration
public Picture Insert(InsertLocation location)
Parameters
Type Name Description
InsertLocation location

The target InsertLocation for the insertion.

Returns
Type Description
Picture

The inserted Picture.

Insert(byte[], string, float, float, InsertLocation)

Inserts a Picture into this collection at a specified location.

Declaration
public Picture Insert(byte[] imageBytes, string contentType, float width, float height, InsertLocation location)
Parameters
Type Name Description
byte[] imageBytes

The image data representing the picture.

string contentType

The content type of the image data.

float width

The picture's width, in points.

float height

The picture's height, in points.

InsertLocation location

The target InsertLocation for the insertion.

Returns
Type Description
Picture

The inserted Picture.

Insert(byte[], string, InsertLocation)

Inserts a Picture into this collection at a specified location.

Declaration
public Picture Insert(byte[] imageBytes, string contentType, InsertLocation location)
Parameters
Type Name Description
byte[] imageBytes

The image data representing the picture.

string contentType

The content type of the image data.

InsertLocation location

The target InsertLocation for the insertion.

Returns
Type Description
Picture

The inserted Picture.

Insert(Image, InsertLocation)

Inserts a Picture into this collection at a specified location.

Declaration
public Picture Insert(Image image, InsertLocation location)
Parameters
Type Name Description
Image image

The GrapeCity.Documents.Drawing.Image object representing the picture.

InsertLocation location

The target InsertLocation for the insertion.

Returns
Type Description
Picture

The inserted Picture. The size of the picture is set to the size of the source image.

Remarks

Note than this overload inspects the image's Exif rotation data and applies an appropriate picture rotation.