Share via


_OlkListBox.SetItem Method

Sets the item at the specified location in the list 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 _OlkListBox
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

_OlkListBox Interface

_OlkListBox Members

Microsoft.Office.Interop.Outlook Namespace