OfficeIMO

API Reference

Class

WordXmlExtensions

Namespace OfficeIMO.Word
Assembly OfficeIMO.Word
Modifiers static

Provides serialization helpers for Word elements.

Inheritance

  • Object
  • WordXmlExtensions

Methods

public static WordParagraph AddParagraphFromXml(WordDocument document, String xml) #
Returns: WordParagraph

Creates a WordParagraph from the provided XML string and appends it to the document.

Parameters

document OfficeIMO.Word.WordDocument requiredposition: 0
Target document.
xml System.String requiredposition: 1
XML string representing a paragraph.

Returns

The inserted WordParagraph.

public static String ToXml(WordParagraph paragraph) #
Returns: String

Returns the raw Open XML string representing the paragraph.

Parameters

paragraph OfficeIMO.Word.WordParagraph requiredposition: 0
Paragraph to convert.

Returns

Outer XML of the underlying Open XML element.