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

Section and Page Properties

Change page orientation

You cannot specify a page's height or width separately. Set the pageSize property to an instance of the Size class.

Related members: pageSize, sections

var size = richEdit.document.sections.getByIndex(0).pageSize;
var width = size.width;
size.width = size.height;
size.height = width;
richEdit.document.sections.getByIndex(0).pageSize = size;