Skip to main content
All docs
V24.1

TdxChartPalette.LoadFromStream(TStream) Method

Repopulates the user palette from a stream.

Declaration

procedure LoadFromStream(const AStream: TStream); virtual;

Parameters

Name Type Description
AStream TStream

The source stream.

Note

The source stream object at the current position must contain a user palette created by a SaveToStream procedure call; otherwise, an error occurs.

Remarks

Call the LoadFromFile or LoadFromStream procedure to repopulate the user palette from a file or stream with a previously saved palette.

Limitations

You cannot modify standard palettes. Only the TdxChartUserPalette class publishes the LoadFromFile procedure.

See Also