Returns the current interface item in the enumeration, your "place" in the enumeration.
When the iterator is first supplied or when it is RSInterfaceCollections.TInterfaceListIterator.Reset , there is no current element (calling this method in such a case would raise an exception). Only after the first call to the RSInterfaceCollections.TInterfaceListIterator.NextElement method will this method return a value. Unlike the NextElement method which returns a new value every time you call it, this method always returns the same value no matter how many times you call it (until NextElement is called, of course).
This method is part of the CommonInterfaces.IInterfaceIterator interface.
Namespace: RSInterfaceCollections
Delphi |
public |
Return Value
Type: IInterface
IInterfaceIterator.CurrentElement
The following code shows how to use the iterator to get all the values in a list object, note that this code assumes that every interface in the list is an IFact interface: Delphi |
var |