Skip to main content

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.

height number

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