Application.SetUserInterfaceItem Method

This method sets the state for various features (elements) of the HotDocs library window. For example, you can use this method to disable features your integration users should not have access to, or you can enable features users may have disabled.

Syntax

void SetUserInterfaceItem ( HotDocs.HDLUI element, bool enabled )

Parameters Description
element The user interface element to change. This must be an HDLUI enum member.
enabled Turns the feature on (TRUE) or off (FALSE).

Example

The following Visual C# example disables three features in the interface to prevent the user from changing the currently open library:

public class ExampleCode
{
    static void Main()
    {
        HotDocs.Application app = new HotDocs.Application();
         
        app.SetUserInterfaceItem(HotDocs.HDLUI.LUIFILENEWLIBRARY, false);
        app.SetUserInterfaceItem(HotDocs.HDLUI.LUIFILEOPENLIBRARY, false);
        app.SetUserInterfaceItem(HotDocs.HDLUI.LUIFILEMRULIST, false);
        app.Visible = true;
    }
}