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


Xceed.Grid.v4.3 Assembly > Xceed.Editors Namespace > WinComboBox Class > Find Method : Find(String) Method
A string representing the displayed text.
Returns the index of the comboBoxItem which would be displayed as the passed parameter.
Syntax
'Declaration
 
Public Overloads Function Find( _

   ByVal displayText As String _

) As Integer
'Usage
 
Dim instance As WinComboBox

Dim displayText As String

Dim value As Integer

 

value = instance.Find(displayText)
public int Find( 

   string displayText

)

Parameters

displayText
A string representing the displayed text.

Return Value

The zero-based index of the first occurrence of displayText. If -1, the value was not found.
Remarks
If no comboBoxItem matches exactly the passed displayText, the returned index will be -1.
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