Skip to content

Properties of TStrings

Methods

Member Visibility Description
Add public Add a string to the list.
AddCommaText public Adds a comma-separated list of strings.
AddDelimitedtext public Adds a separator-delimited list of strings.
AddObject public Add a string and associated object to the list.
AddPair public Add a name-value pair.
AddStrings public Add contents of another stringlist to this list.
AddText public Add text to the string list.
Append public Add a string to the list.
Assign public Assign the contents of another stringlist to this one.
BeginUpdate public Mark the beginning of an update batch.
Clear public Removes all strings and associated objects from the list.
Contains public
ContainsName public
ContainsObject public
Create public Initializ a new TStrings instance.
Delete public Delete a string from the list.
Destroy public Frees all strings and objects, and removes the list from memory.
EndUpdate public Mark the end of an update batch.
Equals public Compares the contents of two stringlists.
Exchange public Exchanges two strings in the list.
ExtractName public Extract the name part of a string.
Fill public Set a range of strings in the list to the specified value.
Filter public Return a filtered list.
ForEach public Call a callback for each string in the list.
GetEnumerator public Create an IEnumerator instance.
GetNameValue public Return both name and value of a name,value pair based on it's index.
GetText public Returns the contents as a PChar.
IndexOf public Find a string in the list and return its position.
IndexOfName public Finds the index of a name in the name-value pairs.
IndexOfObject public Finds an object in the list and returns its index.
Insert public Insert a string in the list.
InsertObject public Insert a string and associated object in the list.
LastIndexOf public Return the index of the last occurrence of a string.
LoadFromFile public Load the contents of a file as a series of strings.
LoadFromStream public Load the contents of a stream as a series of strings.
Map public Call a map routine for each string in the list.
Move public Move a string from one place in the list to another.
Pop public Remove the last string of the list and return it.
Reduce public Get a reduced value from the string list.
Reverse public Reverse the order of the strings in the list.
SaveToFile public Save the contents of the list to a file.
SaveToStream public Save the contents of the string to a stream.
SetStrings public Replace the strings with the passed strings.
SetText public Set the contents of the list from a PChar.
Shift public Return and remove the first string in the list.
Slice public Return a subrange of strings starting at a given index.
ToObjectArray public Return the objects as an array of object.
ToStringArray public Return the strings as an array of string.