Removes an interface from the list. The Direction parameter controls which direction the search should go: forward from 0 or backwards from Count-1.
Call RemoveItem to remove an interface from the list. For multithreading purposes, the list is locked before the removing operation begins and unlocked afterwards.
RemoveItem returns either the index of the removed interface or –1, if the interface was not found.
Note |
---|
The interface list only stores pointers to the interfaces. Removing an interface from the list decreases the interfaces reference count by 1. The interface is freed only if there are no more references to it. |
Namespace: RSInterfaceCollections
Delphi |
public |
Parameters
Item
Type: IInterface
Direction
Type: TDirection
Type: Integer