|
Add(string)
|
Represents method Add(string).
|
|
AddObject(string,TObject,TObject)
|
Overloaded. Adds a string to the list, and associates an object and a hidden object with the string.
Call AddObject to add a string and its associated object and hidden object item to the list. AddObject returns the index of the new string, object, and item.
Note
|
If FreeObjects is false, the stringlist object does not own the objects you add this way. Objects added to the TGStringList object still exist even if the TStrings instance is destroyed. They must be explicitly destroyed by the application. Similarly, the FreeData property controls if the Data hidden object is freed.
|
|
|
AddStrings(TStrings)
|
Overloaded. Represents method AddStrings(TStrings).
|
|
Assign(TPersistent)
|
Represents method Assign(TPersistent).
|
|
Changed
|
Represents method Changed.
|
|
Changing
|
Represents method Changing.
|
|
Clear
|
Represents method Clear.
|
|
Delete(Integer)
|
Represents method Delete(Integer).
|
|
Exchange(Integer,Integer)
|
Represents method Exchange(Integer,Integer).
|
|
Find(string,Integer)
|
Locates the index for a string in a sorted list and indicates whether a string with that value already exists in the list. Use Find to obtain the index in a sorted list where the string S should be added. If the string S already exists in the list, Find returns True. If the list does not contain S, Find returns False. The index where S should go is returned in the Index parameter. The value of Index is zero-based, where the first string has the index 0, the second string has the index 1, and so on.
Note
|
Only use Find with sorted lists. For unsorted lists, use the IndexOf method instead.
|
Tip
|
If the S string is not found (thus return value of Find is False) then Index is set to the index of the first string in the list that sorts immediately before or after S.
|
|
|
ForEach(TForEachObjectMethod,TForEachFilterMethod,LongInt)
|
Overloaded. The ForEach method will iterate over the string list calling the Proc function for every item that passes the FilterFunction (or all items if the FilterFunction is unassigned). The ForEach method allows class methods to be passed instead of regular functions and procedures.
Note
|
The order that the items are processed is not guaranteed, just that every item will be evaluated. In fact, this method goes through the items in reverse order so that the Proc method could delete items without affecting items not yet visited. This may change.
|
|
|
ForEach(TForEachObjectProc,TForEachFilterProc,LongInt)
|
Overloaded. The ForEach method will iterate over the string list calling the Proc function for every item that passes the FilterFunction (or all items if the FilterFunction is unassigned). The ForEach method allows class methods to be passed instead of regular functions and procedures.
Note
|
The order that the items are processed is not guaranteed, just that every item will be evaluated. In fact, this method goes through the items in reverse order so that the Proc method could delete items without affecting items not yet visited. This may change.
|
|
|
Get(Integer)
|
Represents method Get(Integer).
|
|
GetCapacity
|
Represents method GetCapacity.
|
|
GetCount
|
Represents method GetCount.
|
|
GetData(Integer)
|
Represents method GetData(Integer).
|
|
GetObject(Integer)
|
Represents method GetObject(Integer).
|
|
IndexOf(string)
|
Represents method IndexOf(string).
|
|
IndexOfData(TObject)
|
Returns the index of the first string in the list associated with a given object contained in the Data property. Call IndexOfData to locate the first string in the list associated with the object AObject. Specify the object you want to locate as the value of the AObject parameter. IndexOfData returns the 0-based index of the string and object. If the object is not associated with any of the strings, IndexOfData returns -1.
|
|
Insert(Integer,string)
|
Represents method Insert(Integer,string).
|
|
InsertObject(Integer,string,TObject,TObject)
|
Overloaded. Insert the string and its associated object and data at the specified index in the list.
|
|
Put(Integer,string)
|
Represents method Put(Integer,string).
|
|
PutData(Integer,TObject)
|
Represents method PutData(Integer,TObject).
|
|
PutObject(Integer,TObject)
|
Represents method PutObject(Integer,TObject).
|
|
SetCapacity(Integer)
|
Represents method SetCapacity(Integer).
|
|
SetUpdateState(Boolean)
|
Represents method SetUpdateState(Boolean).
|
|
Sort
|
Sorts the strings in the list in ascending order. Call Sort to sort the strings in a list that has the Sorted property set to False. String lists with the Sorted property set to True are automatically sorted.
|