InvokeVerb Method [Office 2003 SDK Documentation]
Microsoft Office 2003 Smart Tag Software Development Kit
InvokeVerb Method [Office 2003 SDK Documentation]

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.

ApplicationProgID
Access 2003Application.Access.11
Excel 2003Excel.Application.11
PowerPoint 2003PowerPoint.Application.11
Word 2003Word.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.



© 2009 Microsoft Corporation. All rights reserved.   Terms of Use | Trademarks | Privacy Statement
Page view tracker
Rate the Lightweight library
x
Lightweight builds on ScriptFree (loband) by adding features you've requested: a SearchBox and default code language selection.
Do you like the SearchBox?
Do you like the tabbed code blocks?
How useful is this topic?
Tell us more.
Thanks
x
You're helping to improve MSDN Online.
Feedback
Switch View
Classic
Lightweight Beta
ScriptFree
Switch View