Data ListFind Method
Find an item value in the specified member of the data source
Definition
Namespace: EWSoftware.ListControls
Assembly: EWSoftware.ListControls (in EWSoftware.ListControls.dll) Version: 2024.12.31.0
The zero-based 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(
string member,
Object key
)VB
Public Function Find (
member As String,
key As Object
) As IntegerC++
public:
int Find(
String^ member,
Object^ key
)F#
member Find :
member : string *
key : Object -> int Parameters
- member String
- The member in the data source to search for the key value
- key Object
- The item to find in the data source
Return Value
Int32The zero-based index of the found item or -1 if not found
Exceptions
| ArgumentOutOfRangeException | This is thrown if specified member could not be found in the data source. |
| ArgumentNullException | This is thrown if the member name or the item to find is null. |