This documentation is archived and is not being maintained.

SmartTags Class

Office 2010

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

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

public class SmartTags : OpenXmlLeafElement

[ISO/IEC 29500-1 1st Edition]

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.

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Show: