SmartTagAction Interface 

Represents a single action for a smart tag.

Namespace: Microsoft.Office.Interop.Word
Assembly: Microsoft.Office.Interop.Word (in microsoft.office.interop.word.dll)

Usage

Public Class martTagActionImplementation
    Implements SmartTagAction
End Class
Dim martTagActionImplementation1 As New martTagActionImplementation()

Syntax

Public Interface SmartTagAction
public interface SmartTagAction
public interface class SmartTagAction
public interface SmartTagAction
public interface SmartTagAction

Remarks

Smart tag actions are processes that are programmed into smart tags that allow users to perform certain functions related to the smart tag. For example, one action for a smart tag might be to access a Web site, while another action inserts contact information into Microsoft Outlook, while yet another displays a map and driving directions.

Smart tag actions also relate to actions built into smart documents and to the controls in the Document Actions task pane. For example, you might have a textbox control displayed in the task pane for a smart document that performs an action when a user changes the contents of the text box.

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 method to return an individual SmartTagAction object from a SmartTagActions collection.

Use the Type property to determine the type of control associated with a SmartTagAction object.

Platforms

Development Platforms

Windows XP Home Edition, Windows XP Professional, Windows Server 2003, and Windows 2000

Target Platforms

See Also

Reference

Microsoft.Office.Interop.Word Namespace

Other Resources

SmartTagAction Members