Base List ControlFind Method
This is called to find an item in the data source
Definition
Namespace: EWSoftware.ListControls
Assembly: EWSoftware.ListControls (in EWSoftware.ListControls.dll) Version: 2024.12.31.0
The index of the found item or -1 if not found
Assembly: EWSoftware.ListControls (in EWSoftware.ListControls.dll) Version: 2024.12.31.0
C#
public int Find(
Object key
)VB
Public Function Find (
key As Object
) As IntegerC++
public:
int Find(
Object^ key
)F#
member Find :
key : Object -> int Parameters
- key Object
- The item to find in the data source. The ValueMember is searched for this value if one is specified. If not, the item text is searched for the value.
Return Value
Int32The index of the found item or -1 if not found
Exceptions
| ArgumentNullException | This is thrown if the item to find is null |