Click or drag to resize

DocumentAddText Method (OpenXmlElement, String, String, Boolean)

Add the text 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 AddText(
	ref OpenXmlElement lSelection,
	string pText,
	string pStyle = "",
	bool pNewParagraph = false
)

Parameters

lSelection
Type: OpenXmlElement
Document selection to insert text
pText
Type: SystemString
Text writes to selection
pStyle (Optional)
Type: SystemString
Style name must exist in document
pNewParagraph (Optional)
Type: SystemBoolean
Insert a new paragraph after section

Return Value

Type: OpenXmlElement
Gives a text selection or a paragraph (on parameter pNewParagraph)
See Also