SmartTags Class

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

Inheritance Hierarchy


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


Public Class SmartTags _
    Inherits OpenXmlLeafElement
Dim instance As SmartTags
public class SmartTags : OpenXmlLeafElement


[ISO/IEC 29500-1 1st Edition] 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:smartTags r:id="rId1"/>

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:

      <a:rPr lang="en-US" dirty="0" smtId="1"/>
    <a:endParaRPr lang="en-US" dirty="0"/>

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 (§



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 (§

[Note: The W3C XML Schema definition of this element’s content model (CT_SmartTags) 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


SmartTags Members

DocumentFormat.OpenXml.Presentation Namespace