Share via


OpenXmlPackage Members (Microsoft.Office.DocumentFormat.OpenXml.Packaging)

[This topic is pre-release documentation and is subject to change in future releases. Blank topics are included as placeholders.]

Base class for strong typed package (document) class.

The following tables list the members exposed by the OpenXmlPackage type.

Protected Constructors

  Name Description
Protected method OpenXmlPackage OpenXmlPackage constructor

Top

Public Properties

  Name Description
Public property CompressionOption Get / Set the compression level for content of new part.
Public property ExternalRelationships  (inherited from OpenXmlPartContainer)
Public property FileOpenAccess  
Public property Package Gets the Package of the document.
Public property PackageProperties  
Public property PartExtensionProvider PartExtensionProvider which provides map from ContentType to part extension.
Public property Parts  Enum all parts which are relationship targets of this part. (inherited from OpenXmlPartContainer)

Top

Public Methods

(see also Protected Methods )

  Name Description
Public method AddAnnotation  (inherited from OpenXmlPartContainer)
Public method AddExtendedPart  Overloaded. (inherited from OpenXmlPartContainer)
Public method AddExternalRelationship  Overloaded. (inherited from OpenXmlPartContainer)
Public method AddNewPart  Overloaded. (inherited from OpenXmlPartContainer)
Public method AddPart Overloaded. Overridden.  
Public method Annotation  Overloaded. (inherited from OpenXmlPartContainer)
Public method Annotations  Overloaded. (inherited from OpenXmlPartContainer)
Public method Close Saves and closes the OpenXml package plus all underlying part streams.
Public method DeleteExternalRelationship  (inherited from OpenXmlPartContainer)
Public method DeletePart  Overloaded. (inherited from OpenXmlPartContainer)
Public method DeleteParts  (inherited from OpenXmlPartContainer)
Public method DeletePartsRecursivelyOfType Delete all the parts which is the specified part type from package recursively.
Public method Dispose Overloaded. Flushes and saves the content, closes the document, and releases all resources.
Public method Equals  Overloaded. (inherited from Object)
Public method GetHashCode  (inherited from Object)
Public method GetIdOfPart  (inherited from OpenXmlPartContainer)
Public method GetPartById  (inherited from OpenXmlPartContainer)
Public method GetPartsCountOfType  (inherited from OpenXmlPartContainer)
Public method GetPartsOfType  Overloaded. (inherited from OpenXmlPartContainer)
Public method GetType  (inherited from Object)
Public method Static ReferenceEquals  (inherited from Object)
Public method RemoveAnnotations  Overloaded. (inherited from OpenXmlPartContainer)
Public method ToString  (inherited from Object)
Public method Validate Validate the package (do not validate the xml content in each part).

Top

Protected Methods

  Name Description
Protected method Dispose Overloaded.  
Protected method Finalize  (inherited from Object)
Protected method MemberwiseClone  (inherited from Object)
Protected method ThrowIfObjectDisposed Overridden. Throw if object is disposed.

Top

See Also

Reference

OpenXmlPackage Class
Microsoft.Office.DocumentFormat.OpenXml.Packaging Namespace