ContextLibraryInitialized Function

This function is called when the library is initialized.

Syntax

ContextLibraryInitialized ( )

Example (Visual C#)

The following Visual C# example implements the ContextLibraryInitialized function and adds a user defined menu item using AddUserMenuItem2:

public void ContextLibraryInitialized()
{
static void Main()
{
HotDocs.Application app = new HotDocs.Application();

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);
}
}