[]
        
(Showing Draft Content)

GrapeCity.Win.Spread.InputMan.CellType.GcComboBoxCellType.FindFirstMatchedAndCanBeSelectedIndex

FindFirstMatchedAndCanBeSelectedIndex Method

FindFirstMatchedAndCanBeSelectedIndex(string, bool)

Looks for the index of first ListItem which matches the specified text in the dropdown list.

Declaration
protected int FindFirstMatchedAndCanBeSelectedIndex(string text, bool ignoreCase)
Protected Function FindFirstMatchedAndCanBeSelectedIndex(text As String, ignoreCase As Boolean) As Integer
Parameters
Type Name Description
string text

A string value indicates the matched text.

bool ignoreCase

A bool value, true if we match string ignore upper or lower case; otherwise, false.

Returns
Type Description
int

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.