Class
WordXmlExtensions
OfficeIMO.Word
Provides serialization helpers for Word elements.
Inheritance
- object
- WordXmlExtensions
Methods
public static WordParagraph AddParagraphFromXml(WordDocument document, string xml) #Creates a WordParagraph from the provided XML string and appends it to the document.
Parameters
- document OfficeIMO.Word.WordDocument
- Target document.
- xml string
- XML string representing a paragraph.
public static string ToXml(WordParagraph paragraph) #Returns the raw Open XML string representing the paragraph.
Parameters
- paragraph OfficeIMO.Word.WordParagraph
- Paragraph to convert.
Returns
string Outer XML of the underlying Open XML element.