PackageExtensions.GetPackage(OpenXmlPackage) Method

Definition

Gets the current IPackage for the package.

C#
public static DocumentFormat.OpenXml.Packaging.IPackage GetPackage (this DocumentFormat.OpenXml.Packaging.OpenXmlPackage package);

Parameters

package
OpenXmlPackage

Current package.

Returns

The underlying IPackage.

Exceptions

If package is null.

Applies to

Product Versions
DocumentFormat.OpenXml 3.0.0, 3.0.1