_OlkComboBox.GetItem Method
Obtains a String (string in C#) that represents an item at the specified location in the list of the combo box control.
Namespace: Microsoft.Office.Interop.Outlook
Assembly: Microsoft.Office.Interop.Outlook (in Microsoft.Office.Interop.Outlook.dll)
Syntax
'Declaration
<DispIdAttribute()> _
Function GetItem ( _
Index As Integer _
) As String
'Usage
Dim instance As _OlkComboBox
Dim Index As Integer
Dim returnValue As String
returnValue = instance.GetItem(Index)
[DispIdAttribute()]
string GetItem(
int Index
)
Parameters
Index
Type: System.Int32A zero-based value that specifies the location of an item in the list.
Return Value
Type: System.String
A String (string in C#) value that represents the item at the specified location in the list.
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.