This documentation is archived and is not being maintained.

TextBody Class

Shape Text Body.When the object is serialized out as xml, its qualified name is p:txBody.

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

public class TextBody : OpenXmlCompositeElement

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] txBody (Shape Text Body)

This element specifies the existence of text to be contained within the corresponding shape. All visible text and visible text related properties are contained within this element. There can be multiple paragraphs and within paragraphs multiple runs of text.

Parent Elements

sp (§

Child Elements


bodyPr (Body Properties)


lstStyle (Text List Styles)


p (Text Paragraphs)


[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.

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.