Back to Devexpress

Section and Page Properties

aspnetcore-402471-rich-edit-examples-section-and-page-properties.md

latest578 B
Original Source

Section and Page Properties

  • Sep 09, 2024

Change page orientation

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

javascript
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;