TextShape Class

Text Shape.When the object is serialized out as xml, its qualified name is a:txSp.

Inheritance Hierarchy

System.Object
  DocumentFormat.OpenXml.OpenXmlElement
    DocumentFormat.OpenXml.OpenXmlCompositeElement
      DocumentFormat.OpenXml.Drawing.TextShape

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

Syntax

声明
<ChildElementInfoAttribute(GetType(Transform2D))> _
<ChildElementInfoAttribute(GetType(TextBody))> _
<ChildElementInfoAttribute(GetType(UseShapeRectangle))> _
<ChildElementInfoAttribute(GetType(ExtensionList))> _
Public Class TextShape _
    Inherits OpenXmlCompositeElement
用法
Dim instance As TextShape
[ChildElementInfoAttribute(typeof(Transform2D))]
[ChildElementInfoAttribute(typeof(TextBody))]
[ChildElementInfoAttribute(typeof(UseShapeRectangle))]
[ChildElementInfoAttribute(typeof(ExtensionList))]
public class TextShape : OpenXmlCompositeElement

Remarks

The following table lists the possible child types:

  • TextBody <a:txBody>

  • UseShapeRectangle <a:useSpRect>

  • Transform2D <a:xfrm>

  • ExtensionList <a:extLst>

[ISO/IEC 29500-1 第 1 个版本]

20.1.2.2.41 txSp (Text Shape)

This element specifies the existence of a text shape within a parent shape. This text shape is specifically used for displaying text as it has only text related child elements.

Parent Elements

grpSp (§20.1.2.2.20); lockedCanvas (§20.3.2.1); sp (§20.1.2.2.33)

Child Elements

Subclause

extLst (Extension List)

§20.1.2.2.15

txBody (Shape Text Body)

§20.1.2.2.40

useSpRect (Use Shape Text Rectangle)

§20.1.2.2.42

xfrm (2D Transform for Individual Objects)

§20.1.7.6

[Note: The W3C XML Schema definition of this element's content model (CT_GvmlTextShape) is located in §A.4.1. end note]

© ISO/IEC29500: 2008. 以上摘要已经由 Microsoft(和/或其代理公司)从英语翻译为简体中文,ISO 对此翻译不承担任何责任。

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

TextShape Members

DocumentFormat.OpenXml.Drawing Namespace