[Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] Reference for unit 'Classes' (#rtl)

TCollection.SetItem

Write handler for the TCollection.Items property.

Declaration

Source position: classesh.inc line 487

protected procedure TCollection.SetItem(

  Index: Integer;

  Value: TCollectionItem

);

Description

SetItem implements the write handler for the TCollection.Items property. It assignes Value to the Index-th element in the array. For this to work properly, the TPersistent.Assign method of the Item must work correctly.

Errors

If Index is outside the allowed range, then an EListError exception is raised.

See also

TCollection.Items

  

Indexed array of items in the collection.

TCollection.Count

  

Number of items in the collection.

TCollection.GetItem

  

Read handler for the TCollection.Items property.

The latest version of this document can be found at lazarus-ccr.sourceforge.net.