Skip to main content

TcxCustomTreeList.StoreToStream(TStream,string) Method

Saves TreeList-specific information to a stream.

Declaration

procedure StoreToStream(AStream: TStream; const ASaveTreeListName: string = '');

Parameters

Name Type
AStream TStream
ASaveTreeListName string

Remarks

Use the StoreToStream method to save TreeList-specific information to a stream. This information can be restored after changes have been applied to the TreeList control. Use the RestoreFromStream method to restore the TreeList structure. Before restoring the TreeList structure, ensure that the control contains all the columns connected to dataset fields at the time when the data was saved.

Stored structure information includes: instance names, band and column settings. Stored elements’ (bands, columns) settings specify the position and visibility of elements, captions, sort order, data binding etc.

The AStream parameter identifies an instance of the TStream class (or a descendant) where the TreeList information is stored.

For information on the ASaveTreeListName parameter, see the RestoreFromIniFile method description.

See Also