ContentPart-Klasse
Defines the ContentPart Class.This class is only available in Office2010.When the object is serialized out as xml, its qualified name is xdr14:contentPart.
Vererbungshierarchie
System.Object
DocumentFormat.OpenXml.OpenXmlElement
DocumentFormat.OpenXml.OpenXmlCompositeElement
DocumentFormat.OpenXml.Office2010.Excel.Drawing.ContentPart
Namespace: DocumentFormat.OpenXml.Office2010.Excel.Drawing
Assembly: DocumentFormat.OpenXml (in DocumentFormat.OpenXml.dll)
Syntax
'Declaration
<OfficeAvailabilityAttribute(FileFormatVersions.Office2010)> _
<ChildElementInfoAttribute(GetType(ExcelNonVisualContentPartProperties), FileFormatVersions.Office2010)> _
<ChildElementInfoAttribute(GetType(ExcelNonVisualContentPartShapeProperties), FileFormatVersions.Office2010)> _
<ChildElementInfoAttribute(GetType(ApplicationNonVisualDrawingProperties), FileFormatVersions.Office2010)> _
<ChildElementInfoAttribute(GetType(Transform2D), FileFormatVersions.Office2010)> _
<ChildElementInfoAttribute(GetType(OfficeArtExtensionList), FileFormatVersions.Office2010)> _
Public Class ContentPart _
Inherits OpenXmlCompositeElement
'Usage
Dim instance As ContentPart
[OfficeAvailabilityAttribute(FileFormatVersions.Office2010)]
[ChildElementInfoAttribute(typeof(ExcelNonVisualContentPartProperties), FileFormatVersions.Office2010)]
[ChildElementInfoAttribute(typeof(ExcelNonVisualContentPartShapeProperties), FileFormatVersions.Office2010)]
[ChildElementInfoAttribute(typeof(ApplicationNonVisualDrawingProperties), FileFormatVersions.Office2010)]
[ChildElementInfoAttribute(typeof(Transform2D), FileFormatVersions.Office2010)]
[ChildElementInfoAttribute(typeof(OfficeArtExtensionList), FileFormatVersions.Office2010)]
public class ContentPart : OpenXmlCompositeElement
Hinweise
The following table lists the possible child types:
ExcelNonVisualContentPartProperties <xdr14:nvContentPr>
ExcelNonVisualContentPartShapeProperties <xdr14:nvContentPartPr>
ApplicationNonVisualDrawingProperties <xdr14:nvPr>
Transform2D <xdr14:xfrm>
OfficeArtExtensionList <xdr14:extLst>
2.3.25 contentPart
Target namespace: https://schemas.microsoft.com/office/xl/2007/8/2/spreadsheetDrawing
A CT_ContentPart 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 SpreadsheetML Drawing ([ISO/IEC-29500-1], section 20.5.2.12) but appears as an element in CT_GroupShape ([ISO/IEC-29500-1], section A.4.5).
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.10 for the full W3C XML Schema ([XMLSCHEMA1] section 2.1).
2.5.64 CT_ContentPart
Target namespace: https://schemas.microsoft.com/office/xl/2007/8/2/spreadsheetDrawing
Referenced by: contentPart
A complex type 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 SpreadsheetML Drawing ([ISO/IEC-29500-1], section 20.5.2.12) but appears underneath CT_GroupShape ([ISO/IEC-29500-1], section A.4.5) to allow for content parts nested inside of group shapes.
Child Elements:
nvContentPr : A CT_ContentPartNonVisual element that specifies non-visual properties for the content part.
nvPr : A CT_ApplicationNonVisualDrawingProps element that specifies non-visual SpreadsheetML Drawing specific properties.
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 is 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:
r:id : An ST_RelationshipId ([ISO/IEC-29500-1] section 22.8.2.1) attribute that specifies the relationship ID to a content part.
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.
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="nvContentPr" 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.10 for the full W3C XML Schema ([XMLSCHEMA1] section 2.1).
Threadsicherheit
Alle öffentlichen static (Shared in Visual Basic) Member dieses Typs sind threadsicher. Bei Instanzmembern ist die Threadsicherheit nicht gewährleistet.