OpenXmlPartContainer Methods

Include Protected Members
Include Inherited Members

This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This page may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist.

The OpenXmlPartContainer type exposes the following members.

Methods

 

Name

Description

Public method

AddAnnotation

Adds an object to the annotation list of this PartContainer.

Public method

AddExtendedPart(String, String, String)

Adds an extended part as an application specific part.

Public method

AddExtendedPart(String, String, String, String)

Adds an extended part as an application specific part.

Public method

AddExternalRelationship(String, Uri)

Adds an external relationship.

Public method

AddExternalRelationship(String, Uri, String)

Adds an external relationship.

Public method

AddNewPart<T>()

Adds a new part of type T.

Public method

AddNewPart<T>(String)

Adds a new part of type T.

Public method

AddNewPart<T>(String, String)

Adds a new part of type T.

Public method

AddPart<T>(T)

Adds the part to the document. Must use the returned part to open the part added to the document.

Public method

AddPart<T>(T, String)

Adds the part to the document with a given relationship identifier (ID). Must use the returned part to operate the part added to the document.

Public method

Annotation(Type)

Gets the first annotation object of the specified type from this PartContainer.

Public method

Annotation<T>()

Gets the first annotation object of the specified type from this PartContainer.

Public method

Annotations(Type)

Gets a collection of annotations of the specified type for this PartContainer.

Public method

Annotations<T>()

Gets a collection of annotations of the specified type for this PartContainer.

Public method

DeleteExternalRelationship

Deletes the external relationship.

Public method

DeletePart(String)

Deletes the specified child part from this part.

Public method

DeletePart(OpenXmlPart)

Deletes a specified part in the package root layer.

Public method

DeleteParts<T>

Deletes all the parts in the passed-in collection.

Public method

Equals

(Inherited from Object.)

Protected method

Finalize

(Inherited from Object.)

Public method

GetHashCode

(Inherited from Object.)

Public method

GetIdOfPart

Gets the relationship ID of the part.

Public method

GetPartById

Gets the child part through the relationship ID.

Public method

GetPartsCountOfType<T>

Gets the count of all parts in type T.

Public method

GetPartsOfType<T>()

Enumerates all the child parts of the specified type "T" of this part.

Public method

GetPartsOfType<T>(ICollection<T>)

Gets all the child parts of the specified type "T" into "partCollection" of this part.

Public method

GetType

(Inherited from Object.)

Protected method

MemberwiseClone

(Inherited from Object.)

Public method

RemoveAnnotations(Type)

Removes the annotations of the specified type from this PartContainer.

Public method

RemoveAnnotations<T>()

Removes the annotations of the specified type from this PartContainer.

Protected method

ThrowIfObjectDisposed

Tests whether the object is already disposed.

Public method

ToString

(Inherited from Object.)

Top

See Also

Reference

OpenXmlPartContainer Class

DocumentFormat.OpenXml.Packaging Namespace