Show/Hide Toolbars

RiverSoftAVG Products Help

Navigation: Code Documentation > RSCommon > RSGenerics.Collections > Classes > TStringList<T> > Methods

TStringList<T>.AddObject(string,TObject,T) Method

Scroll Prev Top Next More

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.


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



Type: string


Type: TObject


Type: T

Return Value

Type: Integer

RiverSoftAVG Products Help © 1996-2016 Thomas G. Grubb