[]
        
(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)
Public Function Insert(location As InsertLocation) As Picture
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)
Public Function Insert(imageBytes As Byte(), contentType As String, width As Single, height As Single, location As InsertLocation) As Picture
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)
Public Function Insert(imageBytes As Byte(), contentType As String, location As InsertLocation) As Picture
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)
Public Function Insert(image As Image, location As InsertLocation) As Picture
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.