ImageAdd Method (OpenXmlElement, String, Double, Double, String, Boolean) | |
Add the image at selection
Namespace:
SIC.OpenDocumentFormat.MSWord
Assembly:
SIC.OpenDocumentFormat (in SIC.OpenDocumentFormat.dll) Version: 19.1.23.1 (19.1.23.622)
Syntax internal OpenXmlElement Add(
ref OpenXmlElement lSelection,
string pImageFile,
double pWidth = 0,
double pHeight = 0,
string pStyle = "",
bool pNewParagraph = false
)
Friend Function Add (
ByRef lSelection As OpenXmlElement,
pImageFile As String,
Optional pWidth As Double = 0,
Optional pHeight As Double = 0,
Optional pStyle As String = "",
Optional pNewParagraph As Boolean = false
) As OpenXmlElement
Parameters
- lSelection
- Type: OpenXmlElement
Document selection to insert text - pImageFile
- Type: SystemString
Image File - pWidth (Optional)
- Type: SystemDouble
Image width in centimetre - pHeight (Optional)
- Type: SystemDouble
Image height in centimetre - pStyle (Optional)
- Type: SystemString
Style name must exist in document - pNewParagraph (Optional)
- Type: SystemBoolean
Insert a new paragraph after section
Return Value
Type:
OpenXmlElementGives a selection or a paragraph (on parameter
pNewParagraph)
See Also