ChangeViewTypeCommand.execute(viewType) Method
In This Article
Executes the ChangeViewTypeCommand command with the specified parameter.
#Declaration
TypeScript
execute(
viewType: ViewType
): boolean
#Parameters
Name | Type | Description |
---|---|---|
view |
View |
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