TextElement Class

Text Element.When the object is serialized out as xml, its qualified name is p:txEl.

Inheritance Hierarchy

System.Object
  DocumentFormat.OpenXml.OpenXmlElement
    DocumentFormat.OpenXml.OpenXmlCompositeElement
      DocumentFormat.OpenXml.Presentation.TextElement

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

Syntax

'Declaration
<ChildElementInfoAttribute(GetType(CharRange))> _
<ChildElementInfoAttribute(GetType(ParagraphIndexRange))> _
Public Class TextElement _
    Inherits OpenXmlCompositeElement
'Usage
Dim instance As TextElement
[ChildElementInfoAttribute(typeof(CharRange))]
[ChildElementInfoAttribute(typeof(ParagraphIndexRange))]
public class TextElement : OpenXmlCompositeElement

Remarks

The following table lists the possible child types:

  • CharRange <p:charRg>

  • ParagraphIndexRange <p:pRg>

[ISO/IEC 29500-1 1st Edition]

19.5.91 txEl (Text Element)

This element specifies a text element to animate.

[Example: Consider a shape containing text to be animated. The <txEl> should be used as follows:

<p:tgtEl>
  <p:spTgt spid="5">
    <p:txEl>
      <p:pRg st="1" end="1"/>
    </p:txEl>
  </p:spTgt>
</p:tgtEl>

end example]

Parent Elements

spTgt (§19.5.72)

Child Elements

Subclause

charRg (Character Range)

§19.5.23

pRg (Paragraph Text Range)

§19.5.56

[Note: The W3C XML Schema definition of this element’s content model (CT_TLTextTargetElement) is located in §A.3. 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

TextElement Members

DocumentFormat.OpenXml.Presentation Namespace