Text Class

Defines the Text Class.When the object is serialized out as xml, its qualified name is a:t.

Inheritance Hierarchy

System.Object
  DocumentFormat.OpenXml.OpenXmlElement
    DocumentFormat.OpenXml.OpenXmlLeafElement
      DocumentFormat.OpenXml.OpenXmlLeafTextElement
        DocumentFormat.OpenXml.Drawing.Text

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

Syntax

'Declaration
Public Class Text _
    Inherits OpenXmlLeafTextElement
'Usage
Dim instance As Text
public class Text : OpenXmlLeafTextElement

Remarks

[ISO/IEC 29500-1 1st Edition]

21.1.2.3.11 t (Text String)

This element specifies the actual text for this text run. This is the text that is formatted using all specified body, paragraph and run properties. This element shall be present within a run of text.

[Example: Consider the DrawingML shown below.

<p:txBody>
…
<a:p>
…
<a:r>
…
<a:t>Sample Text</a:t>
…
</a:r>
    …
</a:p>
…
</p:txBody>

The above DrawingML specifies a text body containing a single paragraph, containing a single run which contains the actual text specified with the <a:t> element.

The possible values for this element are defined by the W3C XML Schema string datatype.

Parent Elements

fld (§21.1.2.2.4); r (§21.1.2.3.8)

© 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

Text Members

DocumentFormat.OpenXml.Drawing Namespace