Sign in Join
FPDoc Onlineexperiment

TStringCollection object

In unit Objects

Collection of pascal strings.

Declaration

pascal
TStringCollection = class(TSortedCollection)

Inheritance

  1. TStringCollection
  2. TSortedCollection
  3. TCollection
  4. TPersistent
  5. TObject

Descends from it: TResourceCollection TUnSortedStrCollection

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.

Methods

GetItemGet string from the stream.
CompareCompare two strings in the collection.
FreeItemDispose a string in the collection from memory.
PutItemWrite a string to the stream.

Inherited

From TCollection (30)

Add Assign BeginUpdate Changed Clear Count Create Delete Destroy EndUpdate Exchange FindItemID GetAttr GetAttrCount GetEnumerator GetItemAttr GetNamePath Insert ItemClass Items Move Notify Owner PropName SetItem SetItemName SetPropName Sort Update UpdateCount

From TPersistent (6)

AssignTo DefineProperties FPOAttachObserver FPODetachObserver FPONotifyObservers GetOwner

From TObject (40)

AfterConstruction BeforeDestruction CheckDisposed ClassInfo ClassName ClassNameIs ClassParent ClassType CleanupInstance DefaultHandler DefaultHandlerStr Dispatch DispatchStr Disposed DisposeOf Equals FieldAddress Free FreeInstance GetDisposed GetHashCode GetInterface GetInterfaceByStr GetInterfaceEntry GetInterfaceEntryByStr GetInterfaceTable GetInterfaceWeak GetLastCastErrorInfo InheritsFrom InitInstance InstanceSize MethodAddress MethodName newinstance QualifiedClassName SafeCallException StringMessageTable SystemHasExtendedRTTI ToString UnitName

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.