Share via


ImageClick Method [Office 2003 SDK Documentation]

The ImageClick method specifies the actions to perform when a user clicks an image in the Document Actions task pane. Applies to controls that are specified as C_TYPE_IMAGE.

Applies to

ISmartDocument

Syntax

[Visual Basic 6.0]

Private Sub ISmartDocument_ImageClick(ByVal ControlID As Long, ByVal ApplicationName As String, ByVal Target As Object, ByVal Text As String, ByVal Xml As String, ByVal LocaleID As Long, ByVal XCoordinate As Long, ByVal YCoordinate As Long)

[Visual Basic .NET]

Public Sub ImageClick(ByVal ControlID As Integer, ByVal ApplicationName As String, ByVal Target As Object, ByVal [Text] As String, ByVal Xml As String, ByVal LocaleID As Integer, ByVal XCoordinate As Integer, ByVal YCoordinate As Integer) Implements SmartTagLib.ISmartDocument.ImageClick

[C#]

public void ImageClick(int ControlID, string ApplicationName, object Target, string Text, string Xml, int LocaleID, int XCoordinate, int YCoordinate)

[Visual C++ 6.0]

STDMETHOD(ImageClick)(INT ControlID, BSTR ApplicationName, IDispatch * Target, BSTR Text, BSTR Xml, INT LocaleID, INT XCoordinate, INT YCoordinate)

[Visual C++ .NET]

STDMETHOD(ImageClick)(int ControlID, BSTR ApplicationName, LPDISPATCH Target, BSTR Text, BSTR Xml, int LocaleID, int XCoordinate, int YCoordinate)

Parameters

ControlID   Represents the ID number assigned to a control in the ControlID property.

ApplicationName   Specifies the name of the application. You can use the ApplicationName parameter to customize a single smart document DLL to provide smart document actions in multiple Microsoft Office applications.

Target   Specifies the Microsoft Word or Microsoft Excel Range object that represents the XML element for which the action is defined.

Text   The text contained in the XML element with which the control is associated.

Xml   Specifies the XML element, including the markup and data, with which the control is associated.

LocaleID   Represents the language setting of the application. You can use the LocaleID parameter to specify different actions for multiple languages in a smart document.

XCoordinate   Specifies the horizontal coordinate, measured in pixels, that fires the click event. The XCoordinate parameter must be a positive value that starts numbering at the left edge of the image.

YCoordinate   Specifies the vertical coordinate, measured in pixels, that fires the click event. The YCoordinate parameter must be a positive value that starts numbering at the top edge of the image.