IGxIcon.SaveToFile

Syntax

SaveToFile(FileName: String);

Parameters

FileName - file name.

Description

The SaveToFile method saves the icon to file. The path and the name of the file is passed by the FileName parameter.

Example

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:

IGxIcon