Skip to main content

InsertHeaderCommand.execute Method

Executes the InsertHeaderCommand command.

Declaration

execute(): boolean

Returns

Type Description
boolean

true if the command has been successfully executed; false if the command execution has failed.

Remarks

//Creates a header and populate it with a text
richEdit.commands.insertHeader.execute();
richEdit.commands.insertText.execute("sometext");
richEdit.commands.closeHeaderFooter.execute();
See Also