SmartTags Class

Smart Tags.When the object is serialized out as xml, its qualified name is p:smartTags.

Inheritance Hierarchy

System.Object
  DocumentFormat.OpenXml.OpenXmlElement
    DocumentFormat.OpenXml.OpenXmlLeafElement
      DocumentFormat.OpenXml.Presentation.SmartTags

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

Syntax

声明
Public Class SmartTags _
    Inherits OpenXmlLeafElement
用法
Dim instance As SmartTags
public class SmartTags : OpenXmlLeafElement

Remarks

[ISO/IEC 29500-1 第 1 个版本]

19.2.1.40 smartTags (Smart Tags)

This element specifies that references to smart tags exist within this document. [Note: For a complete definition of smart tags, which are semantically identical throughout Office Open XML, see §17.5.1. end note] To denote the location of smart tags on individual runs of text, there smart tag identifier attributes are specified for each run to which a smart tag applies. These are further specified in the run property attributes within DrawingML.

[Example: Consider the following PresentationML markup:

<p:presentation>
…
<p:smartTags r:id="rId1"/>
</p:presentation>

The presence of the smartTags element specifies that there is smart tag information within the PresentationML package. Individual runs are then inspected for the value of the smtId attribute to determine where smart tags might apply, for example:

<p:txBody>
  <a:bodyPr/>
  <a:lstStyle/>
  <a:p>
    <a:r>
      <a:rPr lang="en-US" dirty="0" smtId="1"/>
      <a:t>CNTS</a:t>
    </a:r>
    <a:endParaRPr lang="en-US" dirty="0"/>
  </a:p>
</p:txBody>

In the sample above there is a smart tag identifier of 1 specified for this run of text to denote that the text should be inspected for smart tag information. end example]

Parent Elements

presentation (§19.2.1.26)

Attributes

Description

id (Relationship Identifier)

Namespace: .../officeDocument/2006/relationships

Specifies the relationship identifier that is used in conjunction with a corresponding relationship file to resolve the location of this smart tag.

The possible values for this attribute are defined by the ST_RelationshipId simple type (§22.8.2.1).

[Note: The W3C XML Schema definition of this element's content model (CT_SmartTags) is located in §A.3. end note]

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

See Also

Reference

SmartTags Members

DocumentFormat.OpenXml.Presentation Namespace