DocumentAddText Method (OpenXmlElement, String, String, Boolean) |  |
Add the text at selection
Namespace:
SOWIDocument.Word
Assembly:
SOWIDocument.Word (in SOWIDocument.Word.dll) Version: 22.2.10.1 (22.2.10.450)
Syntaxinternal OpenXmlElement AddText(
ref OpenXmlElement pSelection,
string pText,
string pStyle = "",
bool pNewParagraph = false
)
Friend Function AddText (
ByRef pSelection As OpenXmlElement,
pText As String,
Optional pStyle As String = "",
Optional pNewParagraph As Boolean = false
) As OpenXmlElement
Parameters
- pSelection
- 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:
OpenXmlElementGives a text selection or a paragraph (on parameter
pNewParagraph)
Remarks
See Also