Spread Windows Forms 17
GrapeCity.Win.PluginInputMan Assembly / GrapeCity.Win.Spread.InputMan.CellType Namespace / GcComboBoxCellType Class / FindFirstMatchedAndCanBeSelectedIndex Method
A System.String value indicates the matched text.
A bool value, true if we match string ignore upper or lower case; otherwise, false.


In This Topic
    FindFirstMatchedAndCanBeSelectedIndex Method
    In This Topic
    Looks for the index of first ListItem which matches the specified text in the dropdown list.
    Syntax
    'Declaration
     
    
    Protected Function FindFirstMatchedAndCanBeSelectedIndex( _
       ByVal text As String, _
       ByVal ignoreCase As Boolean _
    ) As Integer
    'Usage
     
    
    Dim instance As GcComboBoxCellType
    Dim text As String
    Dim ignoreCase As Boolean
    Dim value As Integer
     
    value = instance.FindFirstMatchedAndCanBeSelectedIndex(text, ignoreCase)
    protected int FindFirstMatchedAndCanBeSelectedIndex( 
       string text,
       bool ignoreCase
    )

    Parameters

    text
    A System.String value indicates the matched text.
    ignoreCase
    A bool value, true if we match string ignore upper or lower case; otherwise, false.

    Return Value

    A int value indicates the index of first ListItem which matches the specified text in the dropdown list. If don't find ,then return -1.
    See Also