Assembly.RemoveCustomInterviewButton Method

This method was deprecated in HotDocs Server 11. The functionality is now available in the Javascript API.

This method removes a custom button from the interview toolbar. The index parameter is the index of the button returned by AddCustomInterviewButton when the button was created.

Syntax

public void RemoveCustomInterviewButton ( int index )

Parameters Description
index The index of the custom interview button to remove.

Example

// This example adds a custom button to the interview toolbar.
HotDocs.Server.Assembly asm = _session.Assemblies.AddNew();
int myButton = asm.AddCustomInterviewButton("MyButton.gif","MyButtonHot.gif","Tooltip","Status Text","alert('Hello World!');");
 
//To remove the button later, use this code:
 
asm.RemoveCustomInterviewButton(myButton);