Export (0) Print
Expand All

InvokeVerb Method [Office 2003 SDK Documentation]

Office 2003

Invokes a verb.

Applies To

ISmartTagAction Interface

Syntax

[Visual Basic 6.0]

Public Sub ISmartTagAction_InvokeVerb(ByVal VerbID As Long, ByVal ApplicationName As String, ByVal Target As Object, ByVal Properties As SmartTagLib.ISmartTagProperties, ByVal Text As String, ByVal Xml As String)

[Visual C++ 6.0]

STDMETHODIMP CSTAction::InvokeVerb(INT VerbID, BSTR ApplicationName, IDispatch * Target, ISmartTagProperties * Properties, BSTR Text, BSTR Xml)

[Visual Basic .NET]

Public Sub InvokeVerb(ByVal VerbID As Integer, ByVal ApplicationName As String, ByVal Target As Object, ByVal Properties As SmartTag.ISmartTagProperties, ByVal Text As String, ByVal XML As String) Implements SmartTag.ISmartTagAction.InvokeVerb

[Visual C#]

public void InvokeVerb(int VerbID, string ApplicationName, object Target, ISmartTagProperties Properties, string Text, string Xml)

Parameters

VerbIDThe unique ID of the verb to be invoked.

ApplicationNameA string that represents the name (ProgID) of the calling application. This is a way of getting the name of an application regardless of the object model. It is also used to identify applications that do not support passing in of a Target (because, for example, they are not automatable).

The following table lists ProgIDs for Microsoft applications.

Application ProgID
Access 2003 Application.Access.11
Excel 2003 Excel.Application.11
PowerPoint 2003 PowerPoint.Application.11
Word 2003 Word.Application.11
Internet Explorer (5.0, 5.5, 6.0) Ietag.ooc.1

Target   A reference to the application-specific object that is responsible for calling the smart tag. In Excel, it is an Excel range object that points to the cell that the smart tag was attached to. In Word and PowerPoint, it is a range object that wraps around the block of text that the smart tag refers to. In Access, it is a control. However, note that this object may be any other kind of pointer to an object appropriate for the calling application. It could also be Null.

Properties   The smart tag property bag. An action DLL can read, write, and modify these properties so that future action invocations can take advantage of the information.

Text   A read-only string that represents the text of the smart tag. For example, if a smart tag on a cell reads "MSFT", Text would equal "MSFT".

XML   A read-only string that is an XML representation of a smart tag.



Show:
© 2014 Microsoft