Adds a string to the list, and associates an object and a generic piece of data with the string.
Call AddObject to add a string and its associated object and generics item to the list. AddObject returns the index of the new string, object, and item.
Note |
---|
If OwnsObjects is false, the stringlist object does not own the objects you add this way. Objects added to the TStringList<T> object still exist even if the TStrings instance is destroyed. They must be explicitly destroyed by the application. |
Namespace: RSGenerics.Collections
Delphi |
public |
Parameters
S
Type: string
AObject
Type: TObject
AData
Type: T
Type: Integer