Click or drag to resize

ImageAddImageToPart Method

Adds a image file to a open XML part (not into document content)

Namespace:  SIC.OpenDocumentFormat.MSWord
Assembly:  SIC.OpenDocumentFormat (in SIC.OpenDocumentFormat.dll) Version: 19.1.23.1 (19.1.23.622)
Syntax
private string AddImageToPart(
	string pImageFile,
	OpenXmlPart pPart = null
)

Parameters

pImageFile
Type: SystemString
Image file name
pPart (Optional)
Type: OpenXmlPart
A open XML part to store the image.

If parameter null then sets the MyDocument.MainDocumentPart

Return Value

Type: String
Relationship to image
See Also