[Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] Reference for unit 'Classes' (#rtl)

TStringList

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

Standard implementation of the TStrings class.

Declaration

Source position: classesh.inc line 727

type TStringList = class(TStrings)

protected

  procedure Changed; virtual;

  

Called when the list of strings was modified.

  procedure Changing; virtual;

  

Called when the list is changing.

  function Get(); override;

  

Overrides the standard read handler for the TStrings.Strings property.

  function GetCapacity; override;

  

Overrides the standard read handler for the TStrings.Capacity property.

  function GetCount; override;

  

Overrides the standard read handler for the TStrings.Count property.

  function GetObject(); override;

  

Overrides the standard read handler for the TStrings.Objects property.

  procedure Put(); override;

  

Overrides the standard write handler for the TStrings.Strings property.

  procedure PutObject(); override;

  

Overrides the standard write handler for the TStrings.Objects property.

  procedure SetCapacity(); override;

  

Overrides the standard write handler for the TStrings.Capacity property.

  procedure SetUpdateState(); override;

  

Overrides the standard TStrings.SetUpdateState call.

  procedure InsertItem();

  function DoCompareText(); override;

public

  destructor Destroy; override;

  

Destroys the stringlist.

  function Add(); override;

  

Implements the TStrings.Add function.

  procedure Clear; override;

  

Implements the TStrings.Clear function.

  procedure Delete(); override;

  

Implements the TStrings.Delete function.

  procedure Exchange(); override;

  

Implements the TStrings.Exchange function.

  function Find(); virtual;

  

Locates the index for a given string in sorted lists.

  function IndexOf(); override;

  

Overrides the TStrings.IndexOf property.

  procedure Insert(); override;

  

Overrides the TStrings.Insert method.

  procedure Sort; virtual;

  

Sorts the strings in the list.

  procedure CustomSort(); virtual;

  

Sort the stringlist using a custom sort algorithm

  Duplicates: TDuplicates;

  

Describes the behaviour of a sorted list with respect to duplicate strings.

  Sorted: Boolean;

  

Determines whether the list is sorted or not.

  CaseSensitive: Boolean;

  

  OnChange: TNotifyEvent;

  

Event triggered after the list was modified.

  OnChanging: TNotifyEvent;

  

Event triggered when the list is about to be modified.

  OwnsObjects: Boolean;

  

Determines whether the stringlist owns it's objects or not.

end;

Inheritance

TStringList

  

Standard implementation of the TStrings class.

|

TStrings

  

Class to manage arrays or collections of strings

|

TPersistent,IFPObserved

  

Base class for streaming system and persistent properties.

|

TObject

  

Base class of all classes.

Description

TStringList is a descendent class of TStrings that implements all of the abstract methods introduced there. It also introduces some additional methods:

See also

TStrings

  

Class to manage arrays or collections of strings

TStrings.Duplicates

TStrings.Sorted

This page is hosted on Get Lazarus Code and Component Repository at SourceForge.net. Fast, secure and Free Open Source software downloads