SaveToStream(Stream: IIOStream);
SaveToStream(Stream: System.IO.Stream);
Stream: Data stream to which the parameters are to be saved.
The SaveToStream method saves display parameters of the LanerResultsBox component to a stream.
Executing this example requires a form, a button named Button1 positioned on this form, the LanerBox component, the LanerResultsBox component named LanerResultsBox1 and the UiErAnalyzer component used as a data source for LanerBox and LanerResultsBox. Workbook of the time series database must be loaded to UiErAnalyzer1.
This example is executed on clicking the button.
Sub Button1OnClick(Sender: Object; Args: IMouseEventArgs);
Var
pStream: IIOStream;
Begin
pStream := New MemoryStream.Create;
LanerResultsBox1.SaveToStream(pStream);
End Sub Button1OnClick;
After executing this example display parameters of the LanerResultsBox component are saved to the pStream data stream.
See also: