RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TWriter.WriteCollection Method

Writes the collection of objects passed in Value to the writer object's stream.

Pascal
procedure WriteCollection(Value: TCollection);
C++
__fastcall WriteCollection(TCollection Value);

WriteCollection is used internally by the component streaming system to write component properties to a stream. Use WriteCollection for writing component properties that are collections to streams. 

WriteCollection first writes the type identifier indicating a collection. 

If the Value parameter is not nil (Delphi) or NULL (C++), WriteCollection next writes each element of the collection to the stream, bounding the elements with start-of-list and end-of-list markers. Otherwise, it skips the elements, assuming an empty collection. 

 

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!