Поделиться через


Text Class

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

Inheritance Hierarchy

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

Namespace:  DocumentFormat.OpenXml.Math
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]

22.1.2.116 t (Text)

This element specifies the text in a math run r.

[Example:

is represented by the following XML:

<m:oMath>
  <m:e>
    <m:r>
      <m:t>J+K+a+j</m:t>
    </m:r>
  </m:e>
</m:oMath>

end example]

Parent Elements

r (§22.1.2.87)

Attributes

Description

xml:space (Content Contains Significant Whitespace)

Namespace: http://www.w3.org/XML/1998/namespace

Specifies how white space should be handled for the contents of this element using the W3C space preservation rules. [Example: Consider the following run contained within a WordprocessingML document:

<w:r>
<w:t>   significant whitespace   </w:t>
</w:r>

Although there are three spaces on each side of the text content in the run, that whitespace has not been specifically marked as significant, therefore it is subject to the space preservation rules currently specified in that run's scope. end example]

The possible values for this attribute are defined by §2.10 of the XML 1.0 specification.

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

Text Members

DocumentFormat.OpenXml.Math Namespace