function AddObject(const S: string; const AObject: TObject): Integer; overload;
Adds S with the object AObject, as Add.
| # | Name | Description |
|---|---|---|
| 1 | S | The text, every text kind; it may be an item of this list. |
| 2 | AObject | The item's object; with OwnsObjects the list frees it. |
Returns: Integer - The new item's index.