find


Description:

[ Version ( since = "2.64" ) ]
public bool find (Object item, out uint position)

Looks up the given item in the list store by looping over the items until the first occurrence of item.

If item was not found, then position will not be set, and this method will return false .

If you need to compare the two items with a custom comparison function, use find_with_equal_func with a custom ArraySearchFunc instead.

Parameters:

this

a ListStore

item

an item

position

the first position of item, if it was found.

Returns:

Whether this contains item. If it was found, position will be set to the position where item occurred for the first time.