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
)
Private Function AddImageToPart (
pImageFile As String,
Optional pPart As OpenXmlPart = Nothing
) As String
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:
StringRelationship to image
See Also