SaveToFile(FileName: String);
FileName - file name.
The SaveToFile method saves the icon to file. The path and the name of the file is passed by the FileName parameter.
Sub Button1OnClick(Sender: Object; Args: IMouseEventArgs);
Var
Icon: IGxIcon;
Begin
Icon := Self.Icon;
Icon.SaveToFile("c:\1.ico");
End Sub Button1OnClick;
After executing the example clicking the button saves the form icon to the 1.ico file.
See also: