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
声明
Public Class Text _
Inherits OpenXmlLeafTextElement
用法
Dim instance As Text
public class Text : OpenXmlLeafTextElement
Remarks
[ISO/IEC 29500-1 第 1 个版本]
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. 以上摘要已经由 Microsoft(和/或其代理公司)从英语翻译为简体中文,ISO 对此翻译不承担任何责任。
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.