|
Add(string)
|
Represents method Add(string). (Inherited from RSGenerics.Collections.TStringList<T>.)
|
|
AddObject(string,TObject)
|
Overloaded. Represents method AddObject(string,TObject). (Inherited from RSGenerics.Collections.TStringList<T>.)
|
|
AddObject(string,TObject,T)
|
Overloaded. 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.
|
|
|
AddStrings(TStrings)
|
Overloaded. Represents method AddStrings(TStrings). (Inherited from RSGenerics.Collections.TStringList<T>.)
|
|
Assign(TPersistent)
|
Represents method Assign(TPersistent). (Inherited from RSGenerics.Collections.TStringList<T>.)
|
|
Changed
|
Called when the string list is changed.
Calls the OnChange event handler.
|
|
Changing
|
Called when the string list is about to be changed.
Calls the OnChanging event handler.
|
|
Clear
|
Represents method Clear. (Inherited from RSGenerics.Collections.TStringList<T>.)
|
|
CompareStrings(string,string)
|
Represents method CompareStrings(string,string). (Inherited from RSGenerics.Collections.TStringList<T>.)
|
|
Delete(Integer)
|
Represents method Delete(Integer). (Inherited from RSGenerics.Collections.TStringList<T>.)
|
|
DoClear
|
Clears the generics string list. (Overrides RSGenerics.Collections.TStringList<T>.DoClear.)
|
|
DoDelete(Integer)
|
Deletes the specified item, including the associated data, from the string list.
Index gives the position of the string, where 0 is the first string, 1 is the second string, and so on.
|
|
DoFinalize(TRSStringItemList,Integer,Integer)
|
Finalizes (uninitializes a dynamically-allocated variable) the array that holds the information in the string list. (Inherited from RSGenerics.Collections.TStringList<T>.)
|
|
DoMove(TRSStringItemList,Integer,Integer,Integer)
|
Overloaded. Moves an item (Count=1) or range of items (Count > 1) in the array from one index to another (Inherited from RSGenerics.Collections.TStringList<T>.)
|
|
DoMove(TRSStringItemList,TRSStringItemList,Integer,Integer,Integer)
|
Overloaded. Copies items from FromArray to ToArray (Inherited from RSGenerics.Collections.TStringList<T>.)
|
|
Exchange(Integer,Integer)
|
Represents method Exchange(Integer,Integer). (Inherited from RSGenerics.Collections.TStringList<T>.)
|
|
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.
|
|
|
Get(Integer)
|
Represents method Get(Integer). (Inherited from RSGenerics.Collections.TStringList<T>.)
|
|
GetCapacity
|
Represents method GetCapacity. (Inherited from RSGenerics.Collections.TStringList<T>.)
|
|
GetCount
|
Represents method GetCount. (Inherited from RSGenerics.Collections.TStringList<T>.)
|
|
GetData(Integer)
|
Returns the associated data for the specified item given its index.
GetData is the protected read implementation of the Data property.
|
|
GetObject(Integer)
|
Represents method GetObject(Integer). (Inherited from RSGenerics.Collections.TStringList<T>.)
|
|
IndexOf(string)
|
Represents method IndexOf(string). (Inherited from RSGenerics.Collections.TStringList<T>.)
|
|
IndexOfData(T)
|
Returns the index of the data item that equals the input AData parameter. If the data is not found, the function returns -1.
|
|
Insert(Integer,string)
|
Represents method Insert(Integer,string). (Inherited from RSGenerics.Collections.TStringList<T>.)
|
|
InsertItem(Integer,string,TObject)
|
Overloaded. Inserts a string into the list at the specified position, and associates it with an object.
Call InsertItem to insert the string S into the list at the position identified by Index, and associate it with the object AObject. 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.
InsertItem is the protected implementation of the InsertObject method.
|
|
InsertItem(Integer,string,TObject,T)
|
Overloaded. Inserts a string into the list at the specified position, and associates it with an object and with a generic data item.
Call InsertItem to insert the string S into the list at the position identified by Index, and associate it with the object AObject and data 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.
InsertItem is the protected implementation of the InsertObject method.
|
|
InsertObject(Integer,string,TObject)
|
Overloaded. Represents method InsertObject(Integer,string,TObject). (Inherited from RSGenerics.Collections.TStringList<T>.)
|
|
InsertObject(Integer,string,TObject,T)
|
Overloaded. 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.
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.
|
|
|
Put(Integer,string)
|
Represents method Put(Integer,string). (Inherited from RSGenerics.Collections.TStringList<T>.)
|
|
PutData(Integer,T)
|
Sets the associated data for the specified item given its index.
PutData is the protected write implementation of the Data property.
|
|
PutObject(Integer,TObject)
|
Represents method PutObject(Integer,TObject). (Inherited from RSGenerics.Collections.TStringList<T>.)
|
|
QuickSort(Integer,Integer,TStringListSortCompare)
|
Overloaded. Represents method QuickSort(Integer,Integer,TStringListSortCompare). (Inherited from RSGenerics.Collections.TStringList<T>.)
|
|
SetCapacity(Integer)
|
Represents method SetCapacity(Integer). (Inherited from RSGenerics.Collections.TStringList<T>.)
|
|
SetUpdateState(Boolean)
|
Represents method SetUpdateState(Boolean). (Inherited from RSGenerics.Collections.TStringList<T>.)
|
|
Sort
|
Overloaded. 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.
Note
|
Sort uses AnsiCompareStr to sort the strings when CaseSensitive is true and AnsiCompareText when CaseSensitive is false. To provide your own comparison operator instead, use the Sort method.
|
|
|
Sort(TStringListSortCompare)
|
Overloaded. Sorts the strings in the list in a customized order.
Use Sort to sort the strings in the list, where the sort order is defined by the Compare parameter.
Supply a value for the Compare function that compares two strings in the string list. The List parameter provides access to the string list, while the Index1 and Index2 parameters identify the strings to be compared.
Do not pass nil (Delphi) or NULL (C++) as the value of the Compare parameter.
Note
|
You must explicitly call the Sort method. Setting the Sorted property only sorts strings using ANSI (Windows) or UTF-8 (Linux) order, as implemented in the Sort method.
|
|
|
StringListCompareStrings(TStringList<T>,Integer,Integer)
|
Returns the sort order (-1, 0, 1) for comparing two strings in the string list. (Inherited from RSGenerics.Collections.TStringList<T>.)
|