Share via


_OlkComboBox.SetItem Method

Sets the item at the specified location in the list of the combo box to the specified value.

Namespace:  Microsoft.Office.Interop.Outlook
Assembly:  Microsoft.Office.Interop.Outlook (in Microsoft.Office.Interop.Outlook.dll)

Syntax

'Declaration
<DispIdAttribute()> _
Sub SetItem ( _
    Index As Integer, _
    Item As String _
)
'Usage
Dim instance As _OlkComboBox
Dim Index As Integer
Dim Item As String

instance.SetItem(Index, Item)
[DispIdAttribute()]
void SetItem(
    int Index,
    string Item
)

Parameters

  • Index
    Type: System.Int32

    A zero-based value that specifies the location of an item in the list.

  • Item
    Type: System.String

    The value to be used to update the list at the specified location.

Remarks

If Index is outside the range of the allowed values (between zero and ListCount-1), then an out-of-bounds error will be returned.

See Also

Reference

_OlkComboBox Interface

_OlkComboBox Members

Microsoft.Office.Interop.Outlook Namespace