GvmlContentPart Class
Defines the GvmlContentPart Class.This class is only available in Office2010.When the object is serialized out as xml, its qualified name is a14:contentPart.
Inheritance Hierarchy
System.Object
DocumentFormat.OpenXml.OpenXmlElement
DocumentFormat.OpenXml.OpenXmlCompositeElement
DocumentFormat.OpenXml.Office2010.Drawing.GvmlContentPart
Namespace: DocumentFormat.OpenXml.Office2010.Drawing
Assembly: DocumentFormat.OpenXml (in DocumentFormat.OpenXml.dll)
Syntax
'宣言
<OfficeAvailabilityAttribute(FileFormatVersions.Office2010)> _
<ChildElementInfoAttribute(GetType(NonVisualContentProperties), FileFormatVersions.Office2010)> _
<ChildElementInfoAttribute(GetType(NonVisualContentPartProperties), FileFormatVersions.Office2010)> _
<ChildElementInfoAttribute(GetType(Transform2D), FileFormatVersions.Office2010)> _
<ChildElementInfoAttribute(GetType(OfficeArtExtensionList), FileFormatVersions.Office2010)> _
Public Class GvmlContentPart _
Inherits OpenXmlCompositeElement
'使用
Dim instance As GvmlContentPart
[OfficeAvailabilityAttribute(FileFormatVersions.Office2010)]
[ChildElementInfoAttribute(typeof(NonVisualContentProperties), FileFormatVersions.Office2010)]
[ChildElementInfoAttribute(typeof(NonVisualContentPartProperties), FileFormatVersions.Office2010)]
[ChildElementInfoAttribute(typeof(Transform2D), FileFormatVersions.Office2010)]
[ChildElementInfoAttribute(typeof(OfficeArtExtensionList), FileFormatVersions.Office2010)]
public class GvmlContentPart : OpenXmlCompositeElement
Remarks
The following table lists the possible child types:
NonVisualContentProperties <a14:nvContentPr>
NonVisualContentPartProperties <a14:nvContentPartPr>
Transform2D <a14:xfrm>
OfficeArtExtensionList <a14:extLst>
2.3.24 contentPart
Target namespace: https://schemas.microsoft.com/office/drawing/2007/7/7/main
A CT_GvmlContentPart element that specifies a reference to XML content in a format not defined by [ISO/IEC-29500-1].
This element serves the same purpose as the contentPart element in PresentationML ([ISO/IEC-29500-1], section 19.3.1.14) but appears as an element in CT_GvmlGroupShape ([ISO/IEC-29500-1], section A.4.1).
The following W3C XML Schema ([XMLSCHEMA1] section 2.1) fragment specifies the contents of this element.
<xsd:element name="contentPart" type="CT_GvmlContentPart"/>
See section 5.1 for the full W3C XML Schema ([XMLSCHEMA1] section 2.1).
2.5.61 CT_GvmlContentPart
Target namespace: https://schemas.microsoft.com/office/drawing/2007/7/7/main
Referenced by: contentPart
A complex type that specifies a reference to XML content in a format not defined by [ISO/IEC-29500-1].
The relationship type of the explicit relationship specified by this element MUST be of type
https://schemas.openxmlformats.org/officeDocument/2006/customXml and have a TargetMode attribute value of Internal. If an application cannot process the content of the content type specified by the targeted part, then it should ignore it and continue to process the file.
Child Elements:
nvContentPr : A CT_GvmlContentPartNonVisual element that specifies non-visual properties for the content part.
xfrm : A CT_Transform2D ([ISO/IEC-29500-1] section A.4.1) element that specifies the 2-D transform for the content part.
extLst : A CT_OfficeArtExtensionList ([ISO/IEC-29500-1] section A.4.1) element that specifies the extension list within which all future extensions of element type ext are defined. The extension list along with corresponding future extensions is used to extend the storage capabilities of the DrawingML framework. This allows for various new types of data to be stored natively within the framework
Attributes:
bwMode : An ST_BlackWhiteMode ([ISO/IEC-29500-1] section 20.1.10.10) attribute that specifies that the content part SHOULD be rendered using black and white coloring. The color information for the content part SHOULD be converted to black, white or grayscale when rendering the content part.
This attribute sets the rendering mode applied to the content part when rendering. This attribute SHOULD NOT modify the color information of the content part stored within the file
r:id : An ST_RelationshipId ([ISO/IEC-29500-1] section 22.8.2.1) attribute that specifies the relationship ID to a content part.
The following W3C XML Schema ([XMLSCHEMA1] section 2.1) fragment specifies the contents of this complex type.
<xsd:complexType name="CT_GvmlContentPart">
<xsd:sequence>
<xsd:element name="nvContentPr" type="CT_GvmlContentPartNonVisual" minOccurs="0" maxOccurs="1"/>
<xsd:element name="xfrm" type="a:CT_Transform2D" minOccurs="0" maxOccurs="1"/>
<xsd:element name="extLst" type="a:CT_OfficeArtExtensionList" minOccurs="0" maxOccurs="1"/>
</xsd:sequence>
<xsd:attribute name="bwMode" type="a:ST_BlackWhiteMode" use="optional"/>
<xsd:attribute ref="r:id" use="required"/>
</xsd:complexType>
See section 5.1 for the full W3C XML Schema ([XMLSCHEMA1] section 2.1).
Thread Safety
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.