[]
        
(Showing Draft Content)

C1.Schedule.C1BindingSource.Find

Find Method

Find(PropertyDescriptor, object)

Searches for the index of the item that has the given property descriptor.

Declaration
public virtual int Find(PropertyDescriptor prop, object key)
Parameters
Type Name Description
PropertyDescriptor prop

The PropertyDescriptor to search on.

object key

The value of the property parameter to search for.

Returns
Type Description
int

The index of the item that has the given PropertyDescriptor.

Implements

Find(string, object)

Returns the index of the item in the list with the specified property name and value.

Declaration
public int Find(string propertyName, object key)
Parameters
Type Name Description
string propertyName

The property name to search on.

object key

The value of the property parameter to search for.

Returns
Type Description
int

The index of the item in the list with the specified property name and value.