Spread WPF 18
GrapeCity.Spreadsheet.FormControls Namespace / IListBox Interface / GetSelected Method
An integer with a range from 0 to one less than the number of items in the list box.


In This Topic
    GetSelected Method
    In This Topic
    Gets the selection state of an item in a IListBox.
    Syntax
    'Declaration
     
    Function GetSelected( _
       ByVal index As Integer _
    ) As Boolean
    'Usage
     
    Dim instance As IListBox
    Dim index As Integer
    Dim value As Boolean
     
    value = instance.GetSelected(index)
    bool GetSelected( 
       int index
    )

    Parameters

    index
    An integer with a range from 0 to one less than the number of items in the list box.

    Return Value

    true if the item is selected; otherwise, false.
    See Also