System.Classes.IVarStreamable

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

IVarStreamable = interface

C++

__interface  INTERFACE_UUID("{D60BA026-5E42-4C2A-BB01-3F1C8F30A28E}") IVarStreamable  : public System::IInterface

Properties

Type Visibility Source Unit Parent
interface
class
public
System.Classes.pas
System.Classes.hpp
System.Classes System.Classes

Description

IVarStreamable is the interface for loading and saving the values of Variants.

Implement IVarStreamable on a custom Variant type class to allow Variants of that type to load or save their values. When a TCustomVaraintType descendant implements the IVarStreamable interface, then when Variants of that custom type are used as the values of published properties, their values are loaded from and saved to form files using the IVarStreamable methods. Without the IVarStreamable interface, the value of the Variant is loaded from and saved to form files as a string.

IVarStreamable defines two methods, StreamIn and StreamOut, for reading and writing the Variant's value.

See Also