Export (0) Print
Expand All

WorkbookPart methods

The WorkbookPart type exposes the following members.

  Name Description
Public method AddAnnotation Adds an object to the annotation list of this PartContainer. (Inherited from OpenXmlPartContainer.)
Public method AddCustomXmlPart(String) Adds a CustomXmlPart to the WorkbookPart.
Public method AddCustomXmlPart(CustomXmlPartType) Adds a CustomXmlPart to the WorkbookPart.
Public method AddCustomXmlPart(String, String) Adds a CustomXmlPart to the WorkbookPart.
Public method AddCustomXmlPart(CustomXmlPartType, String) Adds a CustomXmlPart to the WorkbookPart.
Public method AddExtendedPart(String, String, String) Adds an extended part ( Application specific part ). (Inherited from OpenXmlPartContainer.)
Public method AddExtendedPart(String, String, String, String) Adds an extended part ( Application specific part ). (Inherited from OpenXmlPartContainer.)
Public method AddExternalRelationship(String, Uri) Adds an external relationship. Do not add hyperlink relationships through this method. Use AddHyperlinkRelationship() instead. (Inherited from OpenXmlPartContainer.)
Public method AddExternalRelationship(String, Uri, String) Adds an external relationship. Do not add hyperlink relationships through this method. Use AddHyperlinkRelationship() instead. (Inherited from OpenXmlPartContainer.)
Public method AddHyperlinkRelationship(Uri, Boolean) Adds a new hyperlink relationship. (Inherited from OpenXmlPartContainer.)
Public method AddHyperlinkRelationship(Uri, Boolean, String) Adds a new hyperlink relationship. (Inherited from OpenXmlPartContainer.)
Public method AddNewPart<T>() Adds a new part of type T. (Inherited from OpenXmlPartContainer.)
Public method AddNewPart<T>(String) Adds a new part of type T. (Inherited from OpenXmlPartContainer.)
Public method AddNewPart<T>(String, String) Adds a new part of type T. (Inherited from OpenXmlPartContainer.)
Public method AddPart<T>(T) Adds the part to the document. Must use the returned part to operate on the part added to the document. (Inherited from OpenXmlPartContainer.)
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 on the part added to the document (Inherited from OpenXmlPartContainer.)
Public method AddThumbnailPart(String) Adds a ThumbnailPart to the WorkbookPart.
Public method AddThumbnailPart(ThumbnailPartType) Adds a ThumbnailPart to the WorkbookPart.
Public method AddThumbnailPart(String, String) Adds a ThumbnailPart to the WorkbookPart.
Public method AddThumbnailPart(ThumbnailPartType, String) Adds a ThumbnailPart to the WorkbookPart.
Public method Annotation(Type) Get the first annotation object of the specified type from this PartContainer. (Inherited from OpenXmlPartContainer.)
Public method Annotation<T>() Get the first annotation object of the specified type from this PartContainer. (Inherited from OpenXmlPartContainer.)
Public method Annotations(Type) Gets a collection of annotations of the specified type for this PartContainer. (Inherited from OpenXmlPartContainer.)
Public method Annotations<T>() Gets a collection of annotations of the specified type for this PartContainer. (Inherited from OpenXmlPartContainer.)
Public method ChangeIdOfPart Changes the relationship ID of the part. (Inherited from OpenXmlPartContainer.)
Public method CreateRelationshipToPart(OpenXmlPart) Adds a relationship for the specified part to this part. (Inherited from OpenXmlPartContainer.)
Public method CreateRelationshipToPart(OpenXmlPart, String) Adds a relationship for the specified part to this part. (Inherited from OpenXmlPartContainer.)
Public method DeleteExternalRelationship(String) Deletes the specified ExternalRelationship. (Inherited from OpenXmlPartContainer.)
Public method DeleteExternalRelationship(ExternalRelationship) Deletes the specified external relationship. (Inherited from OpenXmlPartContainer.)
Public method DeletePart(String) Deletes the specified child part from this part. (Inherited from OpenXmlPartContainer.)
Public method DeletePart(OpenXmlPart) Deletes a specified part in the package root layer. (Inherited from OpenXmlPartContainer.)
Public method DeleteParts<T> Deletes all the parts which are in the passed in collection from the document. (Inherited from OpenXmlPartContainer.)
Public method DeleteReferenceRelationship(String) Deletes the specified reference relationship. (Inherited from OpenXmlPartContainer.)
Public method DeleteReferenceRelationship(ReferenceRelationship) Deletes the specified reference relationship. (Inherited from OpenXmlPartContainer.)
Public method Equals (Inherited from Object.)
Public method FeedData Feeds data into the part stream. The stream of the part will be truncated at first. (Inherited from OpenXmlPart.)
Protected method Finalize (Inherited from Object.)
Public method GetExternalRelationship Gets the specified ExternalRelationship. (Inherited from OpenXmlPartContainer.)
Public method GetHashCode (Inherited from Object.)
Public method GetIdOfPart Gets the relationship ID of the part. (Inherited from OpenXmlPartContainer.)
Public method GetParentParts Enumerates all parents that reference this part anywhere in the document. (Inherited from OpenXmlPart.)
Public method GetPartById Gets the child part through the relationship ID. (Inherited from OpenXmlPartContainer.)
Public method GetPartsCountOfType<T> Gets the count of all parts of type T. (Inherited from OpenXmlPartContainer.)
Public method GetPartsOfType<T>() Enumerates all the children parts of the specified type "T" of this part. (Inherited from OpenXmlPartContainer.)
Public method GetPartsOfType<T>(ICollection<T>) Gets all the children parts of the specified type "T" into "partCollection" of this part. (Inherited from OpenXmlPartContainer.)
Public method GetReferenceRelationship Gets the specified ReferenceRelationship. (Inherited from OpenXmlPartContainer.)
Public method GetStream() Returns the part content data stream. (Inherited from OpenXmlPart.)
Public method GetStream(FileMode) Returns the content stream that was opened using a specified I/O FileMode. (Inherited from OpenXmlPart.)
Public method GetStream(FileMode, FileAccess) Returns the part content stream that was opened using a specified FileMode and FileAccess. (Inherited from OpenXmlPart.)
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. (Inherited from OpenXmlPartContainer.)
Public method RemoveAnnotations<T>() Removes the annotations of the specified type from this PartContainer. (Inherited from OpenXmlPartContainer.)
Protected method ThrowIfObjectDisposed Indicates whether the object is already disposed. (Inherited from OpenXmlPart.)
Public method ToString (Inherited from Object.)
Public method ValidateXml(String, ValidationEventHandler) Obsolete. Validates the XML content of the part by using the specified schema. (Inherited from OpenXmlPart.)
Public method ValidateXml(XmlSchemaSet, ValidationEventHandler) Obsolete. Validates the XML content of the part by using the specified schema. (Inherited from OpenXmlPart.)
Top

Community Additions

Show:
© 2014 Microsoft