'Declaration Public Overloads Function Find( _ ByVal displayText As String, _ ByVal searchPattern As WinComboBox.SearchPattern, _ ByVal compareType As CompareType _ ) As Integer
'Usage Dim instance As WinComboBox Dim displayText As String Dim searchPattern As WinComboBox.SearchPattern Dim compareType As CompareType Dim value As Integer value = instance.Find(displayText, searchPattern, compareType)
public int Find( string displayText, WinComboBox.SearchPattern searchPattern, CompareType compareType )
Parameters
- displayText
- A string representing the displayed text.
- searchPattern
- A WinComboBox.SearchPattern representing the pattern to use when searching for displayText.
- compareType
- Indicates how string representations of items contained in the combobox are considered.
Return Value
The zero-based index of the first occurrence of displayText. If -1, the value was not found.