TCustomGrid.LoadFromStream procedure
Loads grid data from the specified stream.
Declaration
procedure LoadFromStream(AStream: TStream); virtualArguments
AStream | TStream instance with values loaded in the method. |
Description
AStream is the
TStream instance with the content loaded
in the method. The stream must be positioned at the location where the
information for the grid begins. The stream position is not changed after its
content has been loaded.
LoadFromStream creates a temporary TXMLConfig instance that is
used load the content from the specified stream. The private LoadSub method
is called using the configuration file instance to read the content in the
file, and may raise an exception if the XML content does not have a valid
version element.
LoadFromStream reverses the actions performed in the SaveToStream method. Please note that the SaveOptions property determines the information available to be loaded from the stream.
Use LoadFromFile to read the content in the grid from a file on the local file system.
See also
An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.
