This method loads an icon (.ico) file.
void LoadIcon( string FileName )
Parameters | Description |
FileName | The name of the icon file to load. |
The following Visual C# example adds a menu item to the File menu in the HotDocs library window with your chosen icon. This example can only be used in conjunction with a Plugin:
public class ExampleCode { static void Main() { HotDocs.Application app = new HotDocs.Application(); //Important: HotDocs.Icon can only be used in conjunction with a Plugin. HotDocs.Icon icon = new HotDocs.Icon(); icon.LoadIcon(@"C:\images\UserMenuIcon.ico"); app.AddUserMenuItem2("User Menu Entry #1", HDLIMENU.LI_FILE, 5, icon); Marshal.ReleaseComObject(icon); Marshal.ReleaseComObject(app); } }