Edit

Share via


SmartTagRecognizer Interface

Definition

Represents installed components that label text with types of information.

public interface class SmartTagRecognizer
[System.Runtime.InteropServices.Guid("15EBE471-0182-4CCE-98D0-B6614D1C32A1")]
public interface SmartTagRecognizer
type SmartTagRecognizer = interface
Public Interface SmartTagRecognizer
Attributes

Remarks

The Address (English) smart tag component contains recognizers for street, city, state, and ZIP code, among other address related items. When a user activates an installed component either through code or by using the Smart Tags tab in the Auto Correct dialog box, Microsoft Word labels the text that matches these items in a document.

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 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[Object] method of the SmartTagRecognizers collection to return a single SmartTagRecognizer object. Once a SmartTagRecognizer object is returned, you can determine whether smart tag recognizers are enabled for the application.

Properties

Application

Returns a Application object that represents the Microsoft Word application.

Caption

Returns the label that identifies the specified smart tag recognizer.

Creator

Returns a 32-bit integer that indicates the application in which the specified object was created.

Enabled

True if a smart tag recognizer is enabled.

FullName

Specifies the full name of a SmartTagRecognizer object, including the path.

Parent

Returns an object that represents the parent object of the specified object.

ProgID

Gets the programmatic identifier (ProgID) for the specified object.

Applies to