SmartTagType interface

Represents a type of smart tag.

Namespace:  Microsoft.Office.Interop.Word
Assembly:  Microsoft.Office.Interop.Word (in Microsoft.Office.Interop.Word.dll)

[GuidAttribute("5E9A888C-E5DC-4DCB-8308-3C91FB61E6F4")]
public interface SmartTagType

A smart tag type is a single item in a smart tag list. Smart tag lists can contain multiple smart tag types. For example, the Address smart tag list installed on English systems by default contains a name smart tag type, a street smart tag type, and a city smart tag type, to name just a few.

SmartTagRecognizer, SmartTagAction, and SmartTagType objects are related in that each item that a smart tag component recognizes is a SmartTagType object. For example, "city" in the Address smart tag component is a specific SmartTagType object. The city smart tag type then has related SmartTagRecognizer objects (the part of the smart tag component that recognizes smart tags of type "city" in documents) and SmartTagAction objects (the part of the smart tag component that provides the actions related to the specific smart tag type, which may include looking up a recognized city in Microsoft MapPoint on MSN). Put simply, the recognizer does the labeling, the action handler provides end-user functionality, and what ties them together is the type of smart tag they work on.

Use the Item method to return a specific smart tag type in a collection of smart tag types. Then use the SmartTagRecognizers property to return all smart tag recognizers associated with a specified type of smart tag, and use the SmartTagActions property to return all smart tag actions associated with a specified type of smart tag.

Show:
© 2014 Microsoft