| Description | Hierarchy | Fields | Methods | Properties |
type TOrderedCollection = class(TCollection)
TOrderedCollection is a base class for collections that avoid deleting their collection items during assign whenever they can. TOrderedCollection is typically used to allow editing of the collection in a GUI. The model owns (directly or indirectly) one copy of the TOrderedCollection. Another copy will be created in the GUI in which Model will be Nil. The user will edit this latter copy in the GUI. The copy then gets assigned back to the original copy.
Assign copies the source TOrderedCollection to itself.![]() |
FModel: TBaseModel; |
![]() |
procedure InvalidateModel; virtual; |
![]() |
function First: TCollectionItem; |
![]() |
function Last: TCollectionItem; |
![]() |
function IsSame(AnOrderedCollection: TOrderedCollection): boolean; virtual; |
![]() |
constructor Create(ItemClass: TCollectionItemClass; Model: TBaseModel); |
![]() |
procedure Assign(Source: TPersistent); override; |
![]() |
property Model: TBaseModel read FModel; |
![]() |
FModel: TBaseModel; |
|
See Model. | |
![]() |
procedure InvalidateModel; virtual; |
|
See also
| |
![]() |
function First: TCollectionItem; |
![]() |
function Last: TCollectionItem; |
![]() |
function IsSame(AnOrderedCollection: TOrderedCollection): boolean; virtual; |
|
| |
![]() |
constructor Create(ItemClass: TCollectionItemClass; Model: TBaseModel); |
|
Parameters
| |
![]() |
procedure Assign(Source: TPersistent); override; |
|
| |
![]() |
property Model: TBaseModel read FModel; |
|
| |