Show/Hide Toolbars

RiverSoftAVG Products Help

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

TStringList<T>.InsertObject(Integer,string,TObject,T) Method

Scroll Prev Top Next More

Inserts a string into the list at the specified position, and associates it with an object and an item.
 
Call InsertObject to insert the string S into the list at the position identified by Index, and associate it with the object AObject and item AData. If Index is 0, the string is inserted at the beginning of the list. If Index is 1, the string is put in the second position of the list, and so on.

noteNote

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

Parameters

Index

Type: Integer

S

Type: string

AObject

Type: TObject

AData

Type: T

RiverSoftAVG Products Help © 1996-2016 Thomas G. Grubb