Sign in Join
FPDoc Onlineexperiment

TMethodList class

In unit LazMethodList

Implements a list of TMethod entries.

Declaration

pascal
TMethodList = class

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

Properties

ItemspublicProvides indexed access to methods in the list.
AllowDuplicatespublicIndicates if duplicate methods are allowed in the list.

Methods

DestroypublicDestructor for the class instance.
CountpublicGets the number of items included in the method list.
NextDownIndexpublicProvides access to items in the method list in reverse order.
IndexOfpublicGets the position where the specified method is stored in the list.
AssignpublicCopies property values from Source into the current class instance.
ClearpublicClears the values in Items by Reallocating memory for the property with a length of 0 bytes.
DeletepublicDeletes the method stored at the specified position.
RemovepublicRemoves the specified method from the items in the list.
AddpublicAdds the specified method to the list.
InsertpublicInserts the specified method at the given position in the list.
MovepublicMoves the position for the specified method in the list.
RemoveAllMethodsOfObjectpublicRemoves methods from the list if they are for the specified object.
CallNotifyEventspublicPerforms event notifications using methods in the list.
GetReversedEnumeratorpublicGets an enumerator for the list that navigates in reverse order.
GetEnumeratorpublicGets an enumerator for the list.

An experiment, built from Lazarus main 2dfa93c66e of 10-22-2026. Not the official Lazarus documentation.