Class TChildObjList
Unit
Declaration
type TChildObjList<T:class> = class(TObject)
Description
Base wrapper for list of map's child objects (mapmarks, tracks). List is linked to map and controls redrawing when an item is added or removed. List owns added objects and disposes them on delete.
Hierarchy
- TObject
- TChildObjList
Overview
Methods
constructor Create(Map: TMapControl); |
|
destructor Destroy; override; |
|
procedure BeginUpdate; |
|
procedure EndUpdate; |
|
function GetEnumerator: TObjectList<T>.TEnumerator; inline; |
|
function Get(Index: Integer): T; inline; |
|
function Add(Item: T): T; |
|
procedure Delete(Ind: Integer); overload; |
|
procedure Delete(Item: T); overload; |
|
procedure Sort; |
|
function Count: Integer; inline; |
|
procedure Clear; |
Properties
property OnItemNotify: TOnItemNotify<T> read FOnItemNotify write FOnItemNotify; |
|
property Items[Index: Integer]: T read Get; |
Description
Methods
constructor Create(Map: TMapControl); |
|
This item has no description. |
destructor Destroy; override; |
|
This item has no description. |
procedure BeginUpdate; |
|
This item has no description. |
procedure EndUpdate; |
|
This item has no description. |
function GetEnumerator: TObjectList<T>.TEnumerator; inline; |
|
This item has no description. |
function Get(Index: Integer): T; inline; |
|
This item has no description. |
function Add(Item: T): T; |
|
Add an item |
procedure Delete(Ind: Integer); overload; |
|
Remove item by index |
procedure Delete(Item: T); overload; |
|
Remove given item |
procedure Sort; |
|
Re- |
function Count: Integer; inline; |
|
Return count of elements in list |
procedure Clear; |
|
Remove all elements |
Properties
property OnItemNotify: TOnItemNotify<T> read FOnItemNotify write FOnItemNotify; |
|
Assigning a handler for this event allows implementing custom init, disposal of allocated memory and so on |
property Items[Index: Integer]: T read Get; |
|
This item has no description. |
Generated by PasDoc 0.16.0.