Share via


OnListOrComboSelectChange Method [Office 2003 SDK Documentation]

The OnListOrComboSelectChange method specifies actions to perform when a user clicks an item in a list box or a combo box. The OnListOrComboSelectChange method is called only when users select a different item from what they previously selected. Applies to controls that are specified as C_TYPE_LISTBOX and C_TYPE_COMBO.

Applies to

ISmartDocument

Syntax

[Visual Basic 6.0]

Private Sub ISmartDocument_OnListOrComboSelectChange(ByVal ControlID As Long, ByVal Target As Object, ByVal Selected As Long, ByVal Value As String)

[Visual Basic .NET]

Public Sub OnListOrComboSelectChange(ByVal ControlID As Integer, ByVal Target As Object, ByVal Selected As Integer, ByVal Value As String) Implements Microsoft.Office.Interop.SmartTag.ISmartDocument.OnListOrComboSelectChange

[C#]

public void ISmartDocument.OnListOrComboSelectChange(int ControlID, object Target, int Selected, string Value)

[Visual C++ 6.0]

STDMETHOD(OnListOrComboSelectChange)(INT ControlID, IDispatch * Target, INT Selected, BSTR Value)

[Visual C++ .NET]

STDMETHOD(OnListOrComboSelectChange)(int ControlID, LPDISPATCH Target, int Selected, BSTR Value)

Parameters

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

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

Selected   Indicates the number of the item in the list that is selected. A value of -1 for the Selected parameter indicates that nothing is selected.

Value   Represents the text for the item in the list that is selected.