MainDocumentPart 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 MainDocumentPart class.
The MainDocumentPart type exposes the following members.
Constructors
Name
Description
Initializes a new instance of the MainDocumentPart.
Top
Properties
Name
Description
Gets the AlternativeFormatImportParts of the MainDocumentPart.
Gets the ChartParts of the MainDocumentPart.
Defines the content type (MIME type) of the content data in the part. (Inherited from OpenXmlPart.)
Gets the CustomXmlParts of the MainDocumentPart.
Gets the DiagramColorsParts of the MainDocumentPart.
Gets the DiagramDataParts of the MainDocumentPart.
Gets the DiagramLayoutDefinitionParts of the MainDocumentPart.
Gets the DiagramStyleParts of the MainDocumentPart.
Gets the DocumentSettingsPart of the MainDocumentPart.
EmbeddedControlPersistenceParts
Gets the EmbeddedControlPersistenceParts of the MainDocumentPart.
Gets the EmbeddedObjectParts of the MainDocumentPart.
Gets the EmbeddedPackageParts of the MainDocumentPart.
Gets the EndnotesPart of the MainDocumentPart.
Enumerates all external relationships. (Inherited from OpenXmlPartContainer.)
Gets the FontTablePart of the MainDocumentPart.
Gets the FooterParts of the MainDocumentPart.
Gets the FootnotesPart of the MainDocumentPart.
Gets the GlossaryDocumentPart of the MainDocumentPart.
Gets the HeaderParts of the MainDocumentPart.
Gets the ImageParts of the MainDocumentPart.
Gets the NumberingDefinitionsPart of the MainDocumentPart.
Defines the OpenXmlPackage that contains this part. (Inherited from OpenXmlPart.)
Enumerates all parts that are relationship targets of this part. (Inherited from OpenXmlPartContainer.)
Gets the RelationshipType. (Overrides OpenXmlPart.RelationshipType.)
Gets the StyleDefinitionsPart of the MainDocumentPart.
Defines the file extension to be used for the part in the package. (Inherited from OpenXmlPart.)
Gets the TargetName. (Overrides OpenXmlPart.TargetName.)
Gets the TargetPath. (Overrides OpenXmlPart.TargetPath.)
Gets the ThemePart of the MainDocumentPart.
Gets the ThumbnailPart of the MainDocumentPart.
Defines the internal part path in the package. (Inherited from OpenXmlPart.)
Gets the VideoParts of the MainDocumentPart.
Gets the WebSettingsPart of the MainDocumentPart.
Gets the WordprocessingCommentsPart of the MainDocumentPart.
WordprocessingPrinterSettingsParts
Gets the WordprocessingPrinterSettingsParts of the MainDocumentPart.
Top
Methods
Name
Description
AddAlternativeFormatImportPart(String)
Adds an AlternativeFormatImportPart to the MainDocumentPart.
AddAlternativeFormatImportPart(AlternativeFormatImportPartType)
Adds an AlternativeFormatImportPart to the MainDocumentPart.
AddAlternativeFormatImportPart(String, String)
Adds an AlternativeFormatImportPart to the MainDocumentPart.
AddAlternativeFormatImportPart(AlternativeFormatImportPartType, String)
Adds an AlternativeFormatImportPart to the MainDocumentPart.
Adds an object to the annotation list of this PartContainer. (Inherited from OpenXmlPartContainer.)
AddEmbeddedControlPersistencePart(String)
Adds an EmbeddedControlPersistencePart to the MainDocumentPart.
AddEmbeddedControlPersistencePart(EmbeddedControlPersistencePartType)
Adds an EmbeddedControlPersistencePart to the MainDocumentPart.
AddEmbeddedControlPersistencePart(String, String)
Adds an EmbeddedControlPersistencePart to the MainDocumentPart.
AddEmbeddedControlPersistencePart(EmbeddedControlPersistencePartType, String)
Adds an EmbeddedControlPersistencePart to the MainDocumentPart.
Adds an EmbeddedObjectPart to the MainDocumentPart.
Adds an EmbeddedPackagePart to the MainDocumentPart.
AddExtendedPart(String, String, String)
Adds an extended part as an application specific part. (Inherited from OpenXmlPartContainer.)
AddExtendedPart(String, String, String, String)
Adds an extended part as an application specific part. (Inherited from OpenXmlPartContainer.)
AddExternalRelationship(String, Uri)
Adds an external relationship. (Inherited from OpenXmlPartContainer.)
AddExternalRelationship(String, Uri, String)
Adds an external relationship. (Inherited from OpenXmlPartContainer.)
Adds an ImagePart to the MainDocumentPart.
Adds an ImagePart to the MainDocumentPart.
Adds an ImagePart to the MainDocumentPart.
AddImagePart(ImagePartType, String)
Adds an ImagePart to the MainDocumentPart.
Adds a new part of type T. (Inherited from OpenXmlPartContainer.)
Adds a new part of type T. (Inherited from OpenXmlPartContainer.)
Adds a new part of type T. (Inherited from OpenXmlPartContainer.)
Adds the part to the document. Must use the returned part to open the part added to the document. (Inherited from OpenXmlPartContainer.)
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.)
Adds a ThumbnailPart to the MainDocumentPart.
AddThumbnailPart(ThumbnailPartType)
Adds a ThumbnailPart to the MainDocumentPart.
AddThumbnailPart(String, String)
Adds a ThumbnailPart to the MainDocumentPart.
AddThumbnailPart(ThumbnailPartType, String)
Adds a ThumbnailPart to the MainDocumentPart.
Adds a VideoPart to the MainDocumentPart.
Adds a VideoPart to the MainDocumentPart.
Adds a VideoPart to the MainDocumentPart.
AddVideoPart(VideoPartType, String)
Adds a VideoPart to the MainDocumentPart.
Gets the first annotation object of the specified type from this PartContainer. (Inherited from OpenXmlPartContainer.)
Gets the first annotation object of the specified type from this PartContainer. (Inherited from OpenXmlPartContainer.)
Gets a collection of annotations of the specified type for this PartContainer. (Inherited from OpenXmlPartContainer.)
Gets a collection of annotations of the specified type for this PartContainer. (Inherited from OpenXmlPartContainer.)
Deletes the external relationship. (Inherited from OpenXmlPartContainer.)
Deletes the specified child part from this part. (Inherited from OpenXmlPartContainer.)
Deletes a specified part in the package root layer. (Inherited from OpenXmlPartContainer.)
Deletes all the parts in the passed-in collection. (Inherited from OpenXmlPartContainer.)
(Inherited from Object.)
Feeds data into the part stream. The stream of the part will be truncated at first. (Inherited from OpenXmlPart.)
(Inherited from Object.)
(Inherited from Object.)
Gets the relationship ID of the part. (Inherited from OpenXmlPartContainer.)
Enumerates all parents that reference this part anywhere in the document. (Inherited from OpenXmlPart.)
Gets the child part through the relationship ID. (Inherited from OpenXmlPartContainer.)
Gets the count of all parts in type T. (Inherited from OpenXmlPartContainer.)
Enumerates all the child parts of the specified type "T" of this part. (Inherited from OpenXmlPartContainer.)
GetPartsOfType<T>(ICollection<T>)
Gets all the child parts of the specified type "T" into "partCollection" of this part. (Inherited from OpenXmlPartContainer.)
Returns the part content data stream. (Inherited from OpenXmlPart.)
Returns the content stream opened in a specified I/O FileMode. (Inherited from OpenXmlPart.)
GetStream(FileMode, FileAccess)
Returns the part content stream opened with a specified FileMode and FileAccess. (Inherited from OpenXmlPart.)
(Inherited from Object.)
(Inherited from Object.)
Removes the annotations of the specified type from this PartContainer. (Inherited from OpenXmlPartContainer.)
Removes the annotations of the specified type from this PartContainer. (Inherited from OpenXmlPartContainer.)
Tests whether the object is already disposed. (Inherited from OpenXmlPart.)
(Inherited from Object.)
ValidateXml(String, ValidationEventHandler)
Validates the XML content of the part according to the specified schema. (Inherited from OpenXmlPart.)
ValidateXml(XmlSchemaSet, ValidationEventHandler)
Validates the XML content of the part according to the specified schema. (Inherited from OpenXmlPart.)
Top
Fields
Name
Description
Defines the fixed value of the RelationshipType.
Defines the fixed value of the TargetName.
Defines the fixed value of the TargetPath.
Top