Smart Action Tag
Smart Action Tag
Represents a single action for a smart tag.
public interface class SmartTagAction
[System.Runtime.InteropServices.Guid("DFB6AA6C-1068-420F-969D-01280FCC1630")] public interface SmartTagAction
Public Interface SmartTagAction
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 Type property to determine the type of control associated with a SmartTagAction object.
|ActiveXControl ActiveXControl ActiveXControl||
Returns an Object that represents an ActiveX control displayed in the Document Actions task pane.
|Application Application Application||
Returns a Application object that represents the Microsoft Word application.
|CheckboxState CheckboxState CheckboxState||
Returns or sets a Boolean that indicates whether a check box in a smart document is selected.
|Creator Creator Creator||
Returns a 32-bit integer that indicates the application in which the specified object was created.
|ExpandDocumentFragment ExpandDocumentFragment 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 ExpandHelp 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 ListSelection ListSelection||
Returns or sets an Integer that represents the index number of the selected item in a smart document list box control.
|Name Name Name||
Returns the name of the specified object.
|Parent Parent Parent||
Returns an object that represents the parent object of the specified object.
|PresentInPane PresentInPane PresentInPane||
Returns a Boolean that represents whether a smart document control is currently displayed in the Document Actions task pane.
|RadioGroupSelection RadioGroupSelection 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 TextboxText TextboxText||
Returns or sets a String that represents the text in a smart document textbox control.
|Type Type Type||
Returns a WdSmartTagControlType that represents the type of Smart Document control displayed in the Document Actions task pane.
|Execute() Execute() Execute()||
Performs the specified smart tag action.