Freigeben über


TextBoxInfo2-Klasse

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

Vererbungshierarchie

System.Object
  DocumentFormat.OpenXml.OpenXmlElement
    DocumentFormat.OpenXml.OpenXmlCompositeElement
      DocumentFormat.OpenXml.Office2010.Word.DrawingShape.TextBoxInfo2

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

Syntax

'Declaration
<ChildElementInfoAttribute(GetType(TextBoxContent))> _
<ChildElementInfoAttribute(GetType(OfficeArtExtensionList), FileFormatVersions.Office2010)> _
<OfficeAvailabilityAttribute(FileFormatVersions.Office2010)> _
Public Class TextBoxInfo2 _
    Inherits OpenXmlCompositeElement
'Usage
Dim instance As TextBoxInfo2
[ChildElementInfoAttribute(typeof(TextBoxContent))]
[ChildElementInfoAttribute(typeof(OfficeArtExtensionList), FileFormatVersions.Office2010)]
[OfficeAvailabilityAttribute(FileFormatVersions.Office2010)]
public class TextBoxInfo2 : OpenXmlCompositeElement

Hinweise

The following table lists the possible child types:

  • DocumentFormat.OpenXml.Wordprocessing.TextBoxContent <w:txbxContent>

  • OfficeArtExtensionList <wps:extLst>

2.5.38 CT_TextboxInfo

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

Referenced by: CT_WordShape

This type contains all of the text contents of a CT_WordShape and associates that textual information, referred to as a text box story, with a story and sequence identifier. An element of this type MUST only be present on the CT_WordShape element which is the first in a series of CT_WordShape elements which refer to the same text box story.

Child Elements:

w12:txbxContent : A CT_TxbxContent ([ISO/IEC-29500-4] section A.1]) element. This element specifies the textual contents.

Attributes:

txbxStory : An unsignedShort ([XMLSCHEMA2] section 3.3.23) attribute that specifies the text box story identification number which is used in other parts of the document to identify the textual contents specified by the txbxContent child element. All CT_TextboxInfo instances in a document MUST have a unique txbxStory identifier.

txbxSeq : An unsignedShort ([XMLSCHEMA2] section 3.3.23) attribute that specifies the sequence number for the containing CT_WordShape. This sequence number MUST be set to 0.

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

<xsd:complexType name="CT_TextboxInfo">

<xsd:sequence>

<xsd:element ref="w12:txbxContent" minOccurs="1" maxOccurs="1"/>

</xsd:sequence>

<xsd:attribute name="txbxStory" type="xsd:unsignedShort" use="required"/>

<xsd:attribute name="txbxSeq" type="xsd:unsignedShort" use="required"/>

</xsd:complexType>

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

Siehe auch

Referenz

TextBoxInfo2-Member

DocumentFormat.OpenXml.Office2010.Word.DrawingShape-Namespace