RAD Studio VCL Reference
TWriter.WriteCollection Method

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

procedure WriteCollection(Value: TCollection);
__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) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!