Share via


CustomFilePropertiesPart Members

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.

Defines the CustomFilePropertiesPart class.

The CustomFilePropertiesPart type exposes the following members.

Constructors

 

Name Description
Protected method CustomFilePropertiesPart Initializes a new instance of the CustomFilePropertiesPart of the class.

Top

Properties

 

Name Description
Public property ContentType Gets the ContentType. (Overrides OpenXmlPart.ContentType.)
Public property ExternalRelationships Enumerates all external relationships. (Inherited from OpenXmlPartContainer.)
Public property OpenXmlPackage Defines the OpenXmlPackage that contains this part. (Inherited from OpenXmlPart.)
Public property Parts Enumerates all parts that are relationship targets of this part. (Inherited from OpenXmlPartContainer.)
Public property RelationshipType Gets the RelationshipType. (Overrides OpenXmlPart.RelationshipType.)
Protected property TargetFileExtension Defines the file extension to be used for the part in the package. (Inherited from OpenXmlPart.)
Protected property TargetName Gets the TargetName. (Overrides OpenXmlPart.TargetName.)
Protected property TargetPath Gets the TargetPath. (Overrides OpenXmlPart.TargetPath.)
Public property Uri Defines the internal part path in the package. (Inherited from OpenXmlPart.)

Top

Methods

 

Name Description
Public method AddAnnotation Adds an object to the annotation list of this PartContainer. (Inherited from OpenXmlPartContainer.)
Public method AddExtendedPart(String, String, String) Adds an extended part as an application specific part. (Inherited from OpenXmlPartContainer.)
Public method AddExtendedPart(String, String, String, String) Adds an extended part as an application specific part. (Inherited from OpenXmlPartContainer.)
Public method AddExternalRelationship(String, Uri) Adds an external relationship. (Inherited from OpenXmlPartContainer.)
Public method AddExternalRelationship(String, Uri, String) Adds an external 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 open 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 the part added to the document. (Inherited from OpenXmlPartContainer.)
Public method Annotation(Type) Gets the first annotation object of the specified type from this PartContainer. (Inherited from OpenXmlPartContainer.)
Public method Annotation<T>() Gets 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 DeleteExternalRelationship Deletes the 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 in the passed-in collection. (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 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 in type T. (Inherited from OpenXmlPartContainer.)
Public method GetPartsOfType<T>() Enumerates all the child parts of the specified type "T" of this part. (Inherited from OpenXmlPartContainer.)
Public method GetPartsOfType<T>(ICollection<T>) Gets all the child parts of the specified type "T" into "partCollection" of this part. (Inherited from OpenXmlPartContainer.)
Public method GetStream() Returns the part content data stream. (Inherited from OpenXmlPart.)
Public method GetStream(FileMode) Returns the content stream opened in a specified I/O FileMode. (Inherited from OpenXmlPart.)
Public method GetStream(FileMode, FileAccess) Returns the part content stream opened with 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 Tests whether the object is already disposed. (Inherited from OpenXmlPart.)
Public method ToString (Inherited from Object.)
Public method ValidateXml(String, ValidationEventHandler) Validates the XML content of the part according to the specified schema. (Inherited from OpenXmlPart.)
Public method ValidateXml(XmlSchemaSet, ValidationEventHandler) Validates the XML content of the part according to the specified schema. (Inherited from OpenXmlPart.)

Top

Fields

 

Name Description
Protected fieldStatic member ContentTypeConstant Defines the fixed value of the ContentType.
Protected fieldStatic member RelationshipTypeConstant Defines the fixed value of the RelationshipType.
Protected fieldStatic member TargetNameConstant Defines the fixed value of the TargetName.
Protected fieldStatic member TargetPathConstant Defines the fixed value of the TargetPath.

Top

See Also

Reference

CustomFilePropertiesPart Class

DocumentFormat.OpenXml.Packaging Namespace