TextBody Class

Text Body.When the object is serialized out as xml, its qualified name is dgm:t.

Inheritance Hierarchy

System.Object
  DocumentFormat.OpenXml.OpenXmlElement
    DocumentFormat.OpenXml.OpenXmlCompositeElement
      DocumentFormat.OpenXml.Drawing.Diagrams.TextBody

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

Syntax

'Declaration
<ChildElementInfoAttribute(GetType(BodyProperties))> _
<ChildElementInfoAttribute(GetType(ListStyle))> _
<ChildElementInfoAttribute(GetType(Paragraph))> _
Public Class TextBody _
    Inherits OpenXmlCompositeElement
'Usage
Dim instance As TextBody
[ChildElementInfoAttribute(typeof(BodyProperties))]
[ChildElementInfoAttribute(typeof(ListStyle))]
[ChildElementInfoAttribute(typeof(Paragraph))]
public class TextBody : OpenXmlCompositeElement

Remarks

The following table lists the possible child types:

  • DocumentFormat.OpenXml.Drawing.BodyProperties <a:bodyPr>

  • DocumentFormat.OpenXml.Drawing.ListStyle <a:lstStyle>

  • DocumentFormat.OpenXml.Drawing.Paragraph <a:p>

[ISO/IEC 29500-1 1st Edition]

21.4.3.8 t (Text Body)

Text body containing the default body, paragraph and character properties. There should be a signle paragraph and no text runs. Any runs in the first paragraph and paragraphs in addition to the first are ignored.

Parent Elements

pt (§21.4.3.5)

Child Elements

Subclause

bodyPr (Body Properties)

§21.1.2.1.1

lstStyle (Text List Styles)

§21.1.2.4.12

p (Text Paragraphs)

§21.1.2.2.6

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

© ISO/IEC29500: 2008.

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

TextBody Members

DocumentFormat.OpenXml.Drawing.Diagrams Namespace