ChangeViewTypeCommand.execute(viewType) Method
Executes the ChangeViewTypeCommand command with the specified parameter.
Declaration
execute(
viewType: ViewType
): boolean
Parameters
| Name | Type | Description |
|---|---|---|
| viewType | ViewType | A string value specifying the Rich Edit’s document view type. |
Returns
| Type | Description |
|---|---|
| boolean | A Boolean value identifying whether method execution was successful or failed. |
Remarks
Usage example:
richEdit.commands.changeViewType.execute('printlayout');
richEdit.commands.changeViewType.execute('simple');
See Also