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


Xceed.Grid.v4.3 Assembly > Xceed.Editors Namespace > WinComboBox Class > Find Method : Find(String,SearchPattern) Method
A string representing the displayed text.
A WinComboBox.SearchPattern representing the pattern to use when searching for displayText.
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 _
) As Integer
'Usage
 
Dim instance As WinComboBox
Dim displayText As String
Dim searchPattern As WinComboBox.SearchPattern
Dim value As Integer
 
value = instance.Find(displayText, searchPattern)

Parameters

displayText
A string representing the displayed text.
searchPattern
A WinComboBox.SearchPattern representing the pattern to use when searching for displayText.

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