WordprocessingCanvas Class

Defines the WordprocessingCanvas Class.This class is only available in Office2010.When the object is serialized out as xml, its qualified name is wpc:wpc.

Inheritance Hierarchy

System.Object
  DocumentFormat.OpenXml.OpenXmlElement
    DocumentFormat.OpenXml.OpenXmlCompositeElement
      DocumentFormat.OpenXml.Office2010.Word.DrawingCanvas.WordprocessingCanvas

Namespace:  DocumentFormat.OpenXml.Office2010.Word.DrawingCanvas
Assembly:  DocumentFormat.OpenXml (in DocumentFormat.OpenXml.dll)

Syntax

声明
<ChildElementInfoAttribute(GetType(WholeFormatting), FileFormatVersions.Office2010)> _
<ChildElementInfoAttribute(GetType(BackgroundFormatting), FileFormatVersions.Office2010)> _
<ChildElementInfoAttribute(GetType(WordprocessingShape), FileFormatVersions.Office2010)> _
<ChildElementInfoAttribute(GetType(Picture))> _
<ChildElementInfoAttribute(GetType(ContentPart), FileFormatVersions.Office2010)> _
<ChildElementInfoAttribute(GetType(WordprocessingGroup), FileFormatVersions.Office2010)> _
<ChildElementInfoAttribute(GetType(OfficeArtExtensionList), FileFormatVersions.Office2010)> _
<OfficeAvailabilityAttribute(FileFormatVersions.Office2010)> _
Public Class WordprocessingCanvas _
    Inherits OpenXmlCompositeElement
用法
Dim instance As WordprocessingCanvas
[ChildElementInfoAttribute(typeof(WholeFormatting), FileFormatVersions.Office2010)]
[ChildElementInfoAttribute(typeof(BackgroundFormatting), FileFormatVersions.Office2010)]
[ChildElementInfoAttribute(typeof(WordprocessingShape), FileFormatVersions.Office2010)]
[ChildElementInfoAttribute(typeof(Picture))]
[ChildElementInfoAttribute(typeof(ContentPart), FileFormatVersions.Office2010)]
[ChildElementInfoAttribute(typeof(WordprocessingGroup), FileFormatVersions.Office2010)]
[ChildElementInfoAttribute(typeof(OfficeArtExtensionList), FileFormatVersions.Office2010)]
[OfficeAvailabilityAttribute(FileFormatVersions.Office2010)]
public class WordprocessingCanvas : OpenXmlCompositeElement

Remarks

The following table lists the possible child types:

  • BackgroundFormatting <wpc:bg>

  • WholeFormatting <wpc:whole>

  • DocumentFormat.OpenXml.Office2010.Word.DrawingShape.WordprocessingShape <wps:wsp>

  • DocumentFormat.OpenXml.Drawing.Pictures.Picture <pic:pic>

  • DocumentFormat.OpenXml.Office2010.Word.ContentPart <w14:contentPart>

  • DocumentFormat.OpenXml.Office2010.Word.DrawingGroup.WordprocessingGroup <wpg:wgp>

  • OfficeArtExtensionList <wpc:extLst>

2.3.17 wpc

Target namespace: https://schemas.microsoft.com/office/word/2008/6/28/wordprocessingCanvas

A CT_WordProcessingCanvas element that specifies a drawing canvas in WordprocessingML. See section 2.2.7 for how this element integrates with [ISO/IEC-29500-1].

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

<xsd:element name="wpc" type="CT_WordProcessingCanvas"/>

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

2.5.48 CT_WordProcessingCanvas

Target namespace: https://schemas.microsoft.com/office/word/2008/6/28/wordprocessingCanvas

Referenced by: wpc

This type defines a drawing canvas in a WordprocessingML document.

Child Elements:

bg : A CT_BackgroundFormatting ([ISO/IEC-29500-1] section A.4.1) element that specifies formatting applied to a drawing canvas's background.

whole : A CT_WholeE2oFormatting ([ISO/IEC-29500-1] section A.4.1) element that specifies line formatting properties applied to a drawing canvas and reflection effect applied to a drawing canvas that includes reflection of the objects inside the drawing canvas.

wsp:wsp : A CT_WordShape element that specifies a shape inside a drawing canvas.

wpcg : A CT_WordProcessingCanvasGroup element that specifies a group of shapes inside a drawing canvas.

pic:pic : A CT_Picture ([ISO/IEC-29500-1] section A.4.2) element that specifies a picture inside a drawing canvas.

w14:contentPart : A CT_WordContentPart element.

extLst : A CT_OfficeArtExtensionList ([ISO/IEC-29500-1] section A.4.1) element to hold future extensions to the parent element of this extLst element.

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

<xsd:complexType name="CT_WordProcessingCanvas">

<xsd:sequence minOccurs="1" maxOccurs="1">

<xsd:element name="bg" type="a:CT_BackgroundFormatting" minOccurs="0" maxOccurs="1"/>

<xsd:element name="whole" type="a:CT_WholeE2oFormatting" minOccurs="0" maxOccurs="1"/>

<xsd:choice minOccurs="0" maxOccurs="unbounded">

<xsd:element ref="wsp:wsp"/>

<xsd:element name="wpcg" type="CT_WordProcessingCanvasGroup"/>

<xsd:element ref="pic:pic"/>

<xsd:element ref="w14:contentPart"/>

</xsd:choice>

<xsd:element name="extLst" type="a:CT_OfficeArtExtensionList" minOccurs="0" maxOccurs="1"/>

</xsd:sequence>

</xsd:complexType>

See section 5.6 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.

See Also

Reference

WordprocessingCanvas Members

DocumentFormat.OpenXml.Office2010.Word.DrawingCanvas Namespace