共用方式為


SmartTagType Class

Supplementary Smart Tag Information.When the object is serialized out as xml, its qualified name is w:smartTagType.

Inheritance Hierarchy

System.Object
  DocumentFormat.OpenXml.OpenXmlElement
    DocumentFormat.OpenXml.OpenXmlLeafElement
      DocumentFormat.OpenXml.Wordprocessing.SmartTagType

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

Syntax

'Declaration
Public Class SmartTagType _
    Inherits OpenXmlLeafElement
'Usage
Dim instance As SmartTagType
public class SmartTagType : OpenXmlLeafElement

Remarks

[ISO/IEC 29500-1 1st Edition]

17.15.1.81 smartTagType (Supplementary Smart Tag Information)

This element specifies optional supplementary information about one or more smart tags (§17.5.1.9) used in the current WordprocessingML document. This supplementary data is linked to the smart tag to which it applies via its name and namespaceuri attributes.

[Example: Consider a smart tag which has supplementary information defined as using the following WordprocessingML:

<w:smartTagType w:name="companyName" w:namespaceuri="urn:smartTagExample" w:url="http://www.example.com/smartTag"/>

The name and namespaceuri attributes specify that the smart tag to which this data must be companyName in the urn:smartTagExample namespace. The supplementary data is an associated URL of http://www.example.com/smartTag. end example]

Parent Elements

settings (§17.15.1.78)

Attributes

Description

name (Smart Tag Name)

Specifies the name of the smart tag within the document for which supplementary data is provided.

[Example: Consider a smart tag which has a name of companyName. This name would be referenced using the following WordprocessingML:

<w:smartTagType w:name="companyName" … />

The name attribute specifies that the name for this smart tag must be companyName. end example]

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

namespaceuri (Smart Tag Namespace)

Specifies the namespace URI of the smart tag for which supplementary data is provided.

If this attribute is omitted, the URI shall be assumed to be null (no associated URI).

[Example: Consider a smart tag which must have a namespace URI of urn:smartTagExample. This namespace would be referenced using the following WordprocessingML:

<w:smartTagType w:namespaceuri="urn:smartTagExample" />

The namespaceuri attribute specifies that the namespace for the smart tag to which this data applies must be urn:smartTagExample. end example]

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

url (Smart Tag Supplementary URL)

Specifies a URL provided for a particular smart tag type in this document. [Note: This URL is typically used to provide access to a URL for additional updates to this smart tag type as requested by the smart tag provider. end note]

If this attribute is omitted, then no supplementary URL is provided for this type.

[Example: Consider a smart tag which must have a supplementary URL of http://www.example.com/smartTag. This URL would be specified using the following WordprocessingML:

<w:smartTagType … w:url="http://www.example.com/smartTag" />

The url attribute specifies that the supplementary data for the smart tag to which this data applies must be http://www.example.com/smartTag. end example]

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

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

SmartTagType Members

DocumentFormat.OpenXml.Wordprocessing Namespace