Share via


_OlkListBox.GetSelected Method

Returns a Boolean (bool in C#) that indicates if the indexed item is currently selected.

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

Syntax

'Declaration
<DispIdAttribute()> _
Function GetSelected ( _
    Index As Integer _
) As Boolean
'Usage
Dim instance As _OlkListBox
Dim Index As Integer
Dim returnValue As Boolean

returnValue = instance.GetSelected(Index)
[DispIdAttribute()]
bool GetSelected(
    int Index
)

Parameters

  • Index
    Type: System.Int32

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

Return Value

Type: System.Boolean
A Boolean value (bool in C#) that is True if the specified item is currently selected, False otherwise.

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