Xceed Grid for WinForms v4.3 Documentation
Find(String,SearchPattern,CompareType) Method


Xceed.Grid.v4.3 Assembly > Xceed.Editors Namespace > WinComboBox Class > Find Method : Find(String,SearchPattern,CompareType) Method
A string representing the displayed text.
A WinComboBox.SearchPattern representing the pattern to use when searching for displayText.
Indicates how string representations of items contained in the combobox are considered.
Returns the index of the comboBoxItem which would be displayed as the passed parameter.
Syntax
'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)

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.
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

WinComboBox Class
WinComboBox Members
Overload List