OpenXmlPartContainer OpenXmlPartContainer OpenXmlPartContainer Class

Definition

Defines the base class for OpenXmlPackage and OpenXmlPart.

public abstract class OpenXmlPartContainer
type OpenXmlPartContainer = class
Public MustInherit Class OpenXmlPartContainer
Inheritance
OpenXmlPartContainerOpenXmlPartContainerOpenXmlPartContainer
Derived

Constructors

OpenXmlPartContainer() OpenXmlPartContainer() OpenXmlPartContainer()

Initializes OpenXmlPartContainer.

Properties

DataPartReferenceRelationships DataPartReferenceRelationships DataPartReferenceRelationships

Enumerates all DataPartReferenceRelationship relationships.

ExternalRelationships ExternalRelationships ExternalRelationships

Enumerates all external relationships. Hyperlink relationships are not included, use HyperlinkRelationship property to enumerate hyperlink relationships.

HyperlinkRelationships HyperlinkRelationships HyperlinkRelationships

Enumerates all hyperlink relationships.

Parts Parts Parts

Enumerates all parts which are relationship targets of this part.

Methods

AddAnnotation(Object) AddAnnotation(Object) AddAnnotation(Object)

Adds an object to the annotation list of this PartContainer.

AddExtendedPart(String, String, String) AddExtendedPart(String, String, String) AddExtendedPart(String, String, String)

Adds an extended part ( Application specific part ).

AddExtendedPart(String, String, String, String) AddExtendedPart(String, String, String, String) AddExtendedPart(String, String, String, String)

Adds an extended part ( Application specific part ).

AddExternalRelationship(String, Uri) AddExternalRelationship(String, Uri) AddExternalRelationship(String, Uri)

Adds an external relationship. Do not add hyperlink relationships through this method. Use AddHyperlinkRelationship() instead.

AddExternalRelationship(String, Uri, String) AddExternalRelationship(String, Uri, String) AddExternalRelationship(String, Uri, String)

Adds an external relationship. Do not add hyperlink relationships through this method. Use AddHyperlinkRelationship() instead.

AddHyperlinkRelationship(Uri, Boolean) AddHyperlinkRelationship(Uri, Boolean) AddHyperlinkRelationship(Uri, Boolean)

Adds a new hyperlink relationship.

AddHyperlinkRelationship(Uri, Boolean, String) AddHyperlinkRelationship(Uri, Boolean, String) AddHyperlinkRelationship(Uri, Boolean, String)

Adds a new hyperlink relationship.

AddNewPart<T>(String, String) AddNewPart<T>(String, String) AddNewPart<T>(String, String)

Adds a new part of type T.

AddNewPart<T>(String) AddNewPart<T>(String) AddNewPart<T>(String)

Adds a new part of type T.

AddNewPart<T>() AddNewPart<T>() AddNewPart<T>()

Adds a new part of type T.

AddPart<T>(T) AddPart<T>(T) AddPart<T>(T)

Adds the part to the document. Must use the returned part to operate on the part added to the document.

AddPart<T>(T, String) AddPart<T>(T, String) AddPart<T>(T, String)

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

Annotation(Type) Annotation(Type) Annotation(Type)

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

Annotation<T>() Annotation<T>() Annotation<T>()

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

Annotations(Type) Annotations(Type) Annotations(Type)

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

Annotations<T>() Annotations<T>() Annotations<T>()

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

ChangeIdOfPart(OpenXmlPart, String) ChangeIdOfPart(OpenXmlPart, String) ChangeIdOfPart(OpenXmlPart, String)

Changes the relationship ID of the part.

CreateRelationshipToPart(OpenXmlPart) CreateRelationshipToPart(OpenXmlPart) CreateRelationshipToPart(OpenXmlPart)

Adds a relationship for the specified part to this part.

CreateRelationshipToPart(OpenXmlPart, String) CreateRelationshipToPart(OpenXmlPart, String) CreateRelationshipToPart(OpenXmlPart, String)

Adds a relationship for the specified part to this part.

DeleteExternalRelationship(ExternalRelationship) DeleteExternalRelationship(ExternalRelationship) DeleteExternalRelationship(ExternalRelationship)

Deletes the specified external relationship.

DeleteExternalRelationship(String) DeleteExternalRelationship(String) DeleteExternalRelationship(String)

Deletes the specified ExternalRelationship.

DeletePart(OpenXmlPart) DeletePart(OpenXmlPart) DeletePart(OpenXmlPart)

Deletes a specified part in the package root layer.

DeletePart(String) DeletePart(String) DeletePart(String)

Deletes the specified child part from this part.

DeleteParts<T>(IEnumerable<T>) DeleteParts<T>(IEnumerable<T>) DeleteParts<T>(IEnumerable<T>)

Deletes all the parts which are in the passed in collection from the document.

DeleteReferenceRelationship(ReferenceRelationship) DeleteReferenceRelationship(ReferenceRelationship) DeleteReferenceRelationship(ReferenceRelationship)

Deletes the specified reference relationship.

DeleteReferenceRelationship(String) DeleteReferenceRelationship(String) DeleteReferenceRelationship(String)

Deletes the specified reference relationship.

GetExternalRelationship(String) GetExternalRelationship(String) GetExternalRelationship(String)

Gets the specified ExternalRelationship.

GetIdOfPart(OpenXmlPart) GetIdOfPart(OpenXmlPart) GetIdOfPart(OpenXmlPart)

Gets the relationship ID of the part.

GetPartById(String) GetPartById(String) GetPartById(String)

Gets the child part through the relationship ID.

GetPartsCountOfType<T>() GetPartsCountOfType<T>() GetPartsCountOfType<T>()

Gets the count of all parts of type T.

GetPartsOfType<T>() GetPartsOfType<T>() GetPartsOfType<T>()

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

GetPartsOfType<T>(ICollection<T>) GetPartsOfType<T>(ICollection<T>) GetPartsOfType<T>(ICollection<T>)

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

GetReferenceRelationship(String) GetReferenceRelationship(String) GetReferenceRelationship(String)

Gets the specified ReferenceRelationship.

RemoveAnnotations(Type) RemoveAnnotations(Type) RemoveAnnotations(Type)

Removes the annotations of the specified type from this PartContainer.

RemoveAnnotations<T>() RemoveAnnotations<T>() RemoveAnnotations<T>()

Removes the annotations of the specified type from this PartContainer.

ThrowIfObjectDisposed() ThrowIfObjectDisposed() ThrowIfObjectDisposed()

Test whether the object is already disposed.

Applies to