Vcl.OleCtnrs.TOleContainer.LoadFromStream
Delphi
procedure LoadFromStream(Stream: TStream);
C++
void __fastcall LoadFromStream(System::Classes::TStream* Stream);
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
procedure function |
public | Vcl.OleCtnrs.pas Vcl.OleCtnrs.hpp |
Vcl.OleCtnrs | TOleContainer |
Description
Loads an OLE object from the specified stream.
Call LoadFromStream to load an OLE object from a stream. If OldStreamFormat is true, LoadFromStream loads OLE objects saved by a TOleContainer object as well as OLE objects saved using the current format; if OldStreamFormat is false, LoadFromStream will not load OLE objects saved by the library. If there's already an OLE object in the container, it is destroyed and any changes the user made to it are discarded.