[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]
Gets an XML string that contains the contents of the document in the Word Open XML format.
Assembly: Microsoft.Office.Tools.Word.v4.0.Utilities (in Microsoft.Office.Tools.Word.v4.0.Utilities.dll)
The following code example retrieves the Open XML content of the current document and saves this XML content into a file in the current directory. To use this example, run it from the ThisDocument class in a document-level project.
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.