[Overview][Classes][Procedures and functions][Index] Reference for unit 'LazMethodList' (#lazutils)

TMethodList

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

Implements a list of TMethod entries.

Declaration

Source position: lazmethodlist.pas line 22

type TMethodList = class

public

  destructor Destroy; override;

  

Destructor for the class instance.

  function Count;

  

Gets the number of items included in the method list.

  function NextDownIndex();

  

Provides access to items in the method list in reverse order.

  function IndexOf();

  

Gets the position where the specified method is stored in the list.

  procedure Assign();

  

Copies property values from Source into the current class instance.

  procedure Clear;

  

Clears the values in Items by Reallocating memory for the property with a length of 0 bytes.

  procedure Delete();

  

Deletes the method stored at the specified position.

  procedure Remove();

  

Removes the specified method from the items in the list.

  procedure Add();

  

Adds the specified method to the list.

  procedure Insert();

  

Inserts the specified method at the given position in the list.

  procedure Move();

  

Moves the position for the specified method in the list.

  procedure RemoveAllMethodsOfObject();

  

Removes methods from the list if they are for the specified object.

  procedure CallNotifyEvents();

  

Performs event notifications using methods in the list.

  function GetReversedEnumerator;

  

Gets an enumerator for the list that navigates in reverse order.

  function GetEnumerator;

  

Gets an enumerator for the list.

  property Items []: TMethod; default; [rw]

  

Provides indexed access to methods in the list.

  property AllowDuplicates: Boolean; [rw]

  

Indicates if duplicate methods are allowed in the list.

end;

Inheritance

TMethodList

  

Implements a list of TMethod entries.

|

TObject

Description

TMethodList is class which implements a list of TMethod entries. TMethodList is implemented using an array of TMethod references that provide access to the Items in the list. Methods are provided to Add, Insert, Delete, and Move items in the list. Enumerators (forward and reverse) are also available for methods in the list.

TMethodList is used in the Lazarus IDE, plugins, and utilities such as: TComponentEditorDesigner, TCodeToolManager, TLazIDEInterface, TLazCompilerOptions, TDebuggerIntf, TGUITestRunner. It is also used in the implementation of Classes and Components like: TFreeNotifyingObject, TApplication, TCustomForm, TControl, TDateTimePicker, TLazSynTextArea, TSynCustomHighlighter, TSynGutterBase, and many more.

See also

TMethod


Version 4.0 Generated 2025-05-03 Home