FindFirstMatchedAndCanBeSelectedIndex Method
Looks for the index of first
ListItem which matches the specified text in the dropdown list.
protected int FindFirstMatchedAndCanBeSelectedIndex(
string ,
bool
)
'Declaration
Protected Function FindFirstMatchedAndCanBeSelectedIndex( _
ByVal As String, _
ByVal 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)
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.