Sign in Join
FPDoc Onlineexperiment

TNamedCollection class

In unit fpMkUnit

Collection class for managing named items

Declaration

pascal
TNamedCollection = class(TCollection)

Inheritance

  1. TNamedCollection
  2. TCollection
  3. TPersistent
  4. TObject

Descends from it: TCommands TPackages TPackageVariants TSources TTargets

Description

Generic collection class that manages a list of TNamedItem objects. Provides name-based lookup functionality and ensures unique naming within the collection.

Properties

UniqueNamespublicControls whether item names must be unique
ItemspublicIndexed access to collection items

Methods

IndexOfNamepublicFind index of item by name
ItemByNamepublicGet item by name

Inherited

From TCollection (30)

Add Assign BeginUpdate Changed Clear Count Create Delete Destroy EndUpdate Exchange FindItemID GetAttr GetAttrCount GetEnumerator GetItem GetItemAttr GetNamePath Insert ItemClass 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.