Spread WPF 18
GrapeCity.Spreadsheet.FormControls Namespace / IListBox Interface / SetSelected Method
An integer with a range from 0 to one less than the number of items in the list box.
A value indicating whether an item is selected.


In This Topic
    SetSelected Method
    In This Topic
    Sets the selection state of an item in a IListBox.
    Syntax
    'Declaration
     
    Sub SetSelected( _
       ByVal index As Integer, _
       ByVal value As Boolean _
    ) 
    'Usage
     
    Dim instance As IListBox
    Dim index As Integer
    Dim value As Boolean
     
    instance.SetSelected(index, value)
    void SetSelected( 
       int index,
       bool value
    )

    Parameters

    index
    An integer with a range from 0 to one less than the number of items in the list box.
    value
    A value indicating whether an item is selected.
    See Also