DocumentFormat.OpenXml by Microsoft

<PackageReference Include="DocumentFormat.OpenXml" Version="2.15.0" />

.NET API 6,024,624 bytes

 WordprocessingDocument

Defines WordprocessingDocument - an OpenXmlPackage represents a Word document.

Gets the CoreFilePropertiesPart of the WordprocessingDocument.

Gets the CustomFilePropertiesPart of the WordprocessingDocument.

Gets the DigitalSignatureOriginPart of the WordprocessingDocument.

Gets the type of the WordprocessingDocument.

Gets the ExtendedFilePropertiesPart of the WordprocessingDocument.

public LabelInfoPart LabelInfoPart { get; }

Gets the LabelInfoPart of the WordprocessingDocument, only available in Office2021.

Gets the MainDocumentPart of the WordprocessingDocument.

Gets the QuickAccessToolbarCustomizationsPart of the WordprocessingDocument.

Gets the RibbonAndBackstageCustomizationsPart of the WordprocessingDocument, only available in Office2010.

Gets the RibbonExtensibilityPart of the WordprocessingDocument.

public ThumbnailPart ThumbnailPart { get; }

Gets the ThumbnailPart of the WordprocessingDocument.

Gets the WebExTaskpanesPart of the WordprocessingDocument, only available in Office2013.

Creates a WordprocessingDocument.

public static WordprocessingDocument Create(string path, WordprocessingDocumentType type)

Creates a new instance of the WordprocessingDocument class from the specified file.

Creates a new instance of the WordprocessingDocument class from the IO stream.

Creates a new instance of the WordprocessingDocument class from the specified package.

public static WordprocessingDocument Create(string path, WordprocessingDocumentType type, bool autoSave)

Creates a new instance of the WordprocessingDocument class from the specified file.

public static WordprocessingDocument Create(Stream stream, WordprocessingDocumentType type, bool autoSave)

Creates a new instance of the WordprocessingDocument class from the IO stream.

public static WordprocessingDocument Create(Package package, WordprocessingDocumentType type, bool autoSave)

Creates a new instance of the WordprocessingDocument class from the specified package.

public static WordprocessingDocument CreateFromTemplate(string path)

Creates an editable WordprocessingDocument from a template, opened on a MemoryStream with expandable capacity. The template will be attached to the WordprocessingDocument.

public static WordprocessingDocument CreateFromTemplate(string path, bool isTemplateAttached)

Creates an editable WordprocessingDocument from a template, opened on a MemoryStream with expandable capacity.

Creates a new editable instance of WordprocessingDocument from an XDocument in Flat OPC format, opened on a MemoryStream.

public static WordprocessingDocument FromFlatOpcDocument(XDocument document, Stream stream, bool isEditable)

Creates a new instance of WordprocessingDocument from an XDocument in Flat OPC format.

public static WordprocessingDocument FromFlatOpcDocument(XDocument document, string path, bool isEditable)

Creates a new instance of WordprocessingDocument from an XDocument in Flat OPC format.

Creates a new instance of WordprocessingDocument from an XDocument in Flat OPC format.

public static WordprocessingDocument FromFlatOpcString(string text)

Creates a new instance of WordprocessingDocument from a string in Flat OPC format on a MemoryStream with expandable capacity.

public static WordprocessingDocument FromFlatOpcString(string text, Stream stream, bool isEditable)

Creates a new instance of WordprocessingDocument from a string in Flat OPC format on a

public static WordprocessingDocument FromFlatOpcString(string text, string path, bool isEditable)

Creates a new instance of WordprocessingDocument from a string in Flat OPC format.

public static WordprocessingDocument FromFlatOpcString(string text, Package package)

Creates a new instance of WordprocessingDocument from a string in Flat OPC format.

public static WordprocessingDocument Open(string path, bool isEditable)

Creates a new instance of the WordprocessingDocument class from the specified file.

public static WordprocessingDocument Open(Stream stream, bool isEditable)

Creates a new instance of the WordprocessingDocument class from the IO stream.

public static WordprocessingDocument Open(string path, bool isEditable, OpenSettings openSettings)

Creates a new instance of the WordprocessingDocument class from the specified file.

public static WordprocessingDocument Open(Stream stream, bool isEditable, OpenSettings openSettings)

Creates a new instance of the WordprocessingDocument class from the IO stream.

public static WordprocessingDocument Open(Package package, OpenSettings openSettings)

Creates a new instance of the WordprocessingDocument class from the specified package.

public static WordprocessingDocument Open(Package package)

Creates a new instance of the WordprocessingDocument class from the specified package.

Adds a CoreFilePropertiesPart to the WordprocessingDocument.

Adds a CustomFilePropertiesPart to the WordprocessingDocument.

Adds a DigitalSignatureOriginPart to the WordprocessingDocument.

Adds a ExtendedFilePropertiesPart to the WordprocessingDocument.

Adds a LabelInfoPart to the WordprocessingDocument, this part is only available in Office2021.

Creates the MainDocumentPart and add it to this document.

Adds a QuickAccessToolbarCustomizationsPart to the WordprocessingDocument.

Adds a RibbonAndBackstageCustomizationsPart to the WordprocessingDocument, this part is only available in Office2010.

Adds a RibbonExtensibilityPart to the WordprocessingDocument.

public ThumbnailPart AddThumbnailPart(string contentType)

Adds a ThumbnailPart to the WordprocessingDocument.

Adds a ThumbnailPart to the WordprocessingDocument.

Adds a WebExTaskpanesPart to the WordprocessingDocument, this part is only available in Office2013.

Changes the document type.