SmartTag Property

Microsoft Word Visual Basic

SmartTag Property

Returns a SmartTag object that represents the smart tag associated with an XML element.

expression.SmartTag

expression    Required. An expression that returns one of the objects in the Applies To list.

Remarks

XML elements can have smart tag actions assigned to them through external components that implement the ISmartTag interface. For more information on smart tags and how to create recognizers and action handlers, refer to the Smart Tag Software Development Kit on the Microsoft Developer Network (MSDN) Web site.

Example

The following example accesses the smart tag for the first node in the active document.

    Dim objSmartTag As SmartTag

Set objSmartTag = ActiveDocument.XMLNodes(1).SmartTag