[]
        
(Showing Draft Content)

C1.C1Preview.ParagraphObjectCollection.AddImage

AddImage Method

AddImage(Image)

Adds an image to the current paragraph content.

Declaration
public ParagraphImage AddImage(Image image)
Parameters
Type Name Description
Image image

The image to add.

Returns
Type Description
ParagraphImage

A ParagraphImage object representing the specified image.

Remarks

This method creates a ParagraphImage, initializes it with the specified image, and adds it to the current collection.

AddImage(string)

Adds an image to the current paragraph content.

Declaration
public ParagraphImage AddImage(string imageName)
Parameters
Type Name Description
string imageName

A string that is assigned to the ImageName property.

Returns
Type Description
ParagraphImage

A ParagraphImage object representing the specified named image.

Remarks

This method creates a ParagraphImage, initializes it with the specified image name, and adds it to the current collection.

AddImage(Image, Style)

Adds an image with a specified style to the current paragraph content.

Declaration
public ParagraphImage AddImage(Image image, Style style)
Parameters
Type Name Description
Image image

The image to add.

Style style

A style used to render the image.

Returns
Type Description
ParagraphImage

A ParagraphImage object representing the specified image.

Remarks

This method creates a ParagraphImage, initializes it with the specified image and style, and adds it to the current collection.