ILanerResultsBox.LoadFromStream

Syntax

LoadFromStream(Stream: IIOStream);

Parameters

Stream. Data stream from which the parameters should be loaded.

Description

The LoadFromStream method loads display parameters of the LanerResultsBox component from a stream.

Example

Executing the example requires a form, a button named Button1 on the form, the LanerBox component, the LanerResultsBox component named LanerResultsBox1 and the UiErAnalyzer component used as a data source for LanerBox and LanerResultsBox. The workbook of the time series database should be loaded to UiErAnalyzer1. The pStream data stream is also required, containing display parameters of the LanerResultsBox1 component.

The example is executed on clicking the button.

Sub Button1OnClick(Sender: Object; Args: IMouseEventArgs);
Var
    pStream: IIOStream;
Begin
    pStream.Position := 0;
    LanerResultsBox1.LoadFromStream(pStream);
    Dispose pStream;
End Sub Button1OnClick;

After executing the example display parameters of the LanerResultsBox component are loaded from the pStream data stream.

See also:

ILanerResultsBox