All docs
V19.2
19.2
19.1
18.2
The page you are viewing does not exist in version 18.2. This link will take you to the root page.
18.1
The page you are viewing does not exist in version 18.1. This link will take you to the root page.
17.2
The page you are viewing does not exist in version 17.2. This link will take you to the root page.

ChangePageSizeCommand.execute(width) Method

Executes the ChangePageSizeCommand command with the specified parameter.

Declaration

execute(width: number | Size, height?: number): boolean

Parameters

Name Type Description
width number | Size

The page size object or the page width.

Optional Parameters

Name Type Default Description
height number null

The page height.

Returns

Type Description
boolean

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

Remarks


richEdit.commands.changePageSize.execute({height: 15840, width: 12240});
See Also