ContentPart class

Office 2013 and later

Defines the ContentPart Class.This class is available in Office2010 or above. When the object is serialized out as xml, its qualified name is cdr14:contentPart.

System.Object
  DocumentFormat.OpenXml.OpenXmlElement
    DocumentFormat.OpenXml.OpenXmlCompositeElement
      DocumentFormat.OpenXml.Office2010.Drawing.ChartDrawing.ContentPart

Namespace:  DocumentFormat.OpenXml.Office2010.Drawing.ChartDrawing
Assembly:  DocumentFormat.OpenXml (in DocumentFormat.OpenXml.dll)

[ChildElementInfoAttribute(typeof(NonVisualContentPartProperties), FileFormatVersions.None|FileFormatVersions.Office2010|FileFormatVersions.Office2013)]
[ChildElementInfoAttribute(typeof(ApplicationNonVisualDrawingProperties), FileFormatVersions.None|FileFormatVersions.Office2010|FileFormatVersions.Office2013)]
[ChildElementInfoAttribute(typeof(Transform2D), FileFormatVersions.None|FileFormatVersions.Office2010|FileFormatVersions.Office2013)]
[ChildElementInfoAttribute(typeof(OfficeArtExtensionList), FileFormatVersions.None|FileFormatVersions.Office2010|FileFormatVersions.Office2013)]
[OfficeAvailabilityAttribute(FileFormatVersions.Office2010)]
public class ContentPart : OpenXmlCompositeElement

2.3.33 contentPart

Target namespace: http://schemas.microsoft.com/office/drawing/2010/chartDrawing

A CT_ContentPart element that specifies a reference to XML content in a format not specified in [ISO/IEC-29500-1].

This element serves the same purpose as the contentPart element in SpreadsheetML Drawing ([ISO/IEC-29500-1] section 20.5.2.12), but appears under CT_GroupShape and EG_ObjectChoices ([ISO/IEC-29500-1] section A.5.1) to enable content parts in charts.

The following W3C XML Schema ([XMLSCHEMA1] section 2.1) fragment specifies the contents of this element.

<xsd:element name="contentPart" type="CT_ContentPart"/>

See section 5.8 for the full W3C XML Schema ([XMLSCHEMA1] section 2.1).

2.5.83 CT_ContentPart

Target namespace: http://schemas.microsoft.com/office/drawing/2010/chartDrawing

Referenced by: contentPart

A complex type that specifies a reference to XML content in a format not specified in [ISO/IEC-29500-1].

This element serves the same purpose as the contentPart element in SpreadsheetML Drawing ([ISO/IEC-29500-1] section 20.5.2.12), but appears under CT_GroupShape and EG_ObjectChoices ([ISO/IEC-29500-1] section A.5.1) to enable content parts in charts.

Child Elements:

nvContentPartPr: A CT_ContentPartNonVisual element that specifies non-visual properties of the content part.

nvPr: A CT_ApplicationNonVisualDrawingProps element that specifies non-visual Chart DrawingML-specific properties.

xfrm: A CT_Transform2D element ([ISO/IEC-29500-1] section A.4.1) that specifies the 2-D transform for the content part.

extLst: A CT_OfficeArtExtensionList element ([ISO/IEC-29500-1] section A.4.1) that specifies the extension list in 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 enables various new types of data to be stored natively in the framework.

Attributes:

r:id: An ST_RelationshipId attribute ([ISO/IEC-29500-1] section 22.8.2.1) that specifies the relationship identifier to a content part.

bwMode: An ST_BlackWhiteMode attribute ([ISO/IEC-29500-1] section 20.1.10.10) that specifies how to interpret color information contained within a content part to achieve a color, black and white, or grayscale rendering of the content part. This attribute specifies only the rendering mode applied to the content part; it does not affect how the actual color information is persisted

The following W3C XML Schema ([XMLSCHEMA1] section 2.1) fragment specifies the contents of this complex type.

<xsd:complexType name="CT_ContentPart">

<xsd:sequence>

<xsd:element name="nvContentPartPr" type="CT_ContentPartNonVisual" minOccurs="0" maxOccurs="1"/>

<xsd:element name="nvPr" type="CT_ApplicationNonVisualDrawingProps" 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 ref="r:id" use="required"/>

<xsd:attribute name="bwMode" type="a:ST_BlackWhiteMode" use="optional" default="auto"/>

</xsd:complexType>

See section 5.8 for the full W3C XML Schema ([XMLSCHEMA1] section 2.1).

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Show: