IGxIcon.SaveToStream

Syntax

SaveToStream(Stream: IIOStream);

Parameters

Stream. The stream, which is used for saving.

Description

The SaveToStream method saves the icon to stream.

Example

Sub Button1OnClick(Sender: Object; Args: IMouseEventArgs);
Var
    Icon: IGxIcon;
    Stream: IIOStream;
Begin
    Icon := Self.Icon;
    Icon.SaveToStream(Stream);
End Sub Button1OnClick;

After executing the example clicking the button saves the form icon to the Stream stream.

See also:

IGxIcon