Show: Delphi
C++
Display Preferences
FMX.Types.TFmxObject.LoadFromStream
From XE2 API Documentation
Delphi
procedure LoadFromStream(const AStream: TStream);
C++
void __fastcall LoadFromStream(const System::Classes::TStream* AStream);
Properties
| Type | Visibility | Source | Unit | Parent |
|---|---|---|---|---|
procedure function |
public | FMX.Types.pas FMX.Types.hpp |
FMX.Types | TFmxObject |
Description
Initializes the object from a stored definition in a text stream, typically an .fmx file. Other technologies have similar concepts, using terms like "deserializing" or "unarchiving".
If the stream is a binary stream instead of a text stream, use LoadFromBinStream.
This base class method should not be confused with similarly named methods that load data from a stream (or a file). For example, TBitmap has a LoadFromStream method, but it loads an image from a supported graphics format (like PNG). TBitmap is on a different branch of the FMX class hierarchy: it is not a TFmxObject, but does share the common root TPersistent.