[]
Searches for the index of the item that has the given property descriptor.
public virtual int Find(PropertyDescriptor prop, object key)
Public Overridable Function Find(prop As PropertyDescriptor, key As Object) As Integer
| Type | Name | Description |
|---|---|---|
| PropertyDescriptor | prop | The PropertyDescriptor to search on. |
| object | key | The value of the property parameter to search for. |
| Type | Description |
|---|---|
| int | The index of the item that has the given PropertyDescriptor. |
Returns the index of the item in the list with the specified property name and value.
public int Find(string propertyName, object key)
Public Function Find(propertyName As String, key As Object) As Integer
| Type | Name | Description |
|---|---|---|
| string | propertyName | The property name to search on. |
| object | key | The value of the property parameter to search for. |
| Type | Description |
|---|---|
| int | The index of the item in the list with the specified property name and value. |