[]
        
(Showing Draft Content)

GrapeCity.Documents.Word.GroupShape.AddPicture

AddPicture Method

AddPicture()

Adds a new Picture to the end of the group shape.

Declaration
public Picture AddPicture()
Public Function AddPicture() As Picture
Returns
Type Description
Picture

The added Picture.

AddPicture(byte[], string)

Adds a new Picture to the end of the group shape.

Declaration
public Picture AddPicture(byte[] imageBytes, string contentType)
Public Function AddPicture(imageBytes As Byte(), contentType As String) As Picture
Parameters
Type Name Description
byte[] imageBytes

The image data representing the picture.

string contentType

The content type of the image data.

Returns
Type Description
Picture

The added Picture.

AddPicture(Image)

Adds a new Picture to the end of the group shape.

Declaration
public Picture AddPicture(Image image)
Public Function AddPicture(image As Image) As Picture
Parameters
Type Name Description
Image image
Returns
Type Description
Picture

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

AddPicture(byte[], string, float, float)

Adds a new Picture to the end of the group shape.

Declaration
public Picture AddPicture(byte[] imageBytes, string contentType, float width, float height)
Public Function AddPicture(imageBytes As Byte(), contentType As String, width As Single, height As Single) 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.

Returns
Type Description
Picture

The added Picture.