System.Classes.TStringList

From RAD Studio API Documentation
Jump to: navigation, search

System.Classes.TStringsSystem.Classes.TPersistentSystem.TObjectTStringList

Delphi

TStringList = class(TStrings)

C++

class PASCALIMPLEMENTATION TStringList : public TStrings

Properties

Type Visibility Source Unit Parent
class public
System.Classes.pas
System.Classes.hpp
System.Classes System.Classes

Description

TStringList maintains a list of strings.

Use a string list object to store and manipulate a list of strings. TStringList implements the abstract properties and methods introduced by TStrings, and introduces new properties, events, and methods to:

  • Sort the strings in the list.
  • Prohibit duplicate strings in sorted lists.
  • Respond to changes in the contents of the list.
  • Control whether strings are located, sorted, and identified as duplicates in a case-sensitive or case-insensitive manner.

TStringList can contain up to 2,147,483,647 strings. This is because the list is indexed using an integer. See String Types (Delphi) for information about the size limit of each string.

See Also