Skip to content

TStringCollection

[Properties (by Name)][Methods (by Name)][Events (by Name)]

Collection of pascal strings.

Declaration

Source position: objects.pp line 483

Type
  TStringCollection = object (TSortedCollection)
    function GetItem(var S: TStream) : Pointer;  Virtual;
    function Compare(Key1: Pointer; Key2: Pointer) : Sw_Integer;  Virtual;
    procedure FreeItem(Item: Pointer);  Virtual;
    procedure PutItem(var S: TStream; Item: Pointer);  Virtual;
  end
  ;

Description

The TStringCollection object manages a sorted collection of pascal strings. To this end, it overrides the Compare method of TSortedCollection, and it introduces methods to read/write strings from a stream.

Members

Member Type Visibility Description
Compare Method default Compare two strings in the collection.
FreeItem Method default Dispose a string in the collection from memory.
GetItem Method default Get string from the stream.
PutItem Method default Write a string to the stream.

Inheritance

Class Description
TStringCollection Collection of pascal strings.