Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

TcxCustomTreeList.StoreToStream(TStream,string) Method

Saves TreeList-specific information to a stream.

#Declaration

Delphi
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