DisplayMenuInitialize Function

This function initializes your plug-in's library window menu. HotDocs calls this function each time the user accesses your plug-in's menu, which allows it to behave differently depending on which library is currently open or which items are currently selected in the library.

Syntax

void DisplayMenuInitialize( string libraryPath, HotDocs.LibraryEntity caretEntry)

Parameters Description
libraryPath The file path for the currently open library.
caretEntry The currently selected library entry.

Example (Visual C#)

The following Visual C# example displays a message when accessing your plug-in menu, showing the currently selected library item.

public void DisplayMenuInitialize(string libraryPath, LibraryEntity caretEntry)
{
    MessageBox.Show(caretEntry.Title);
}