Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/
Class

WordXmlExtensions

OfficeIMO.Word

Namespace
OfficeIMO.Word
Assembly
OfficeIMO.Word
Source revision
0eef6a5756b9 with working tree changes
Modifiers
static

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 required
Target document.
xml string required
XML string representing a paragraph.

Returns

WordParagraph The inserted WordParagraph.
public static string ToXml(WordParagraph paragraph) #

Returns the raw Open XML string representing the paragraph.

Parameters

paragraph OfficeIMO.Word.WordParagraph required
Paragraph to convert.

Returns

string Outer XML of the underlying Open XML element.