SmartTagAction Interface
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Represents a single action for a smart tag.
public interface class SmartTagAction
[System.Runtime.InteropServices.Guid("DFB6AA6C-1068-420F-969D-01280FCC1630")]
public interface SmartTagAction
type SmartTagAction = interface
Public Interface SmartTagAction
- Attributes
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[Object] 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.
Properties
ActiveXControl |
Returns an Object that represents an ActiveX control displayed in the Document Actions task pane. |
Application |
Returns a Application object that represents the Microsoft Word application. |
CheckboxState |
Returns or sets a Boolean that indicates whether a check box in a smart document is selected. |
Creator |
Returns a 32-bit integer that indicates the application in which the specified object was created. |
ExpandDocumentFragment |
Returns or sets a Boolean that represents whether the specified document fragment control is expanded or collapsed in the Document Actions task pane. |
ExpandHelp |
Returns or sets a Boolean that represents whether the specified smart document Help text control is expanded or collapsed in the Document Actions task pane. |
ListSelection |
Returns or sets an Integer that represents the index number of the selected item in a smart document list box control. |
Name |
Returns the name of the specified object. |
Parent |
Returns an object that represents the parent object of the specified object. |
PresentInPane |
Returns a Boolean that represents whether a smart document control is currently displayed in the Document Actions task pane. |
RadioGroupSelection |
Returns or sets an Integer that represents the index number of the selected item in a group of radio button controls in a smart document. |
TextboxText |
Returns or sets a String that represents the text in a smart document textbox control. |
Type |
Returns a WdSmartTagControlType that represents the type of Smart Document control displayed in the Document Actions task pane. |
Methods
Execute() |
Performs the specified smart tag action. |