Skip to main content

Класс PageProperties

Класс PageProperties предоставляет такие свойства страницы как высота, ширина, размеры полей. Используется в Document::setPageProperties(), Section::getPageProperties(), Section::setPageProperties().

Варианты конструкторов:


PageProperties();
PageProperties(Uint width, Uint height);

ПолеТипОписание
PageProperties.heightfloatВысота страницы
PageProperties.widthfloatШирина страницы
PageProperties.marginsInsetsПоля страницы

Примеры​


PageProperties pageProperties = section.getPageProperties();
pageProperties.height = 100;
pageProperties.width = 200;
section.setPageProperties(pageProperties);
PageProperties pageProperties = PageProperties();
pageProperties.height = 100;
pageProperties.width = 200;
document.setPageProperties(pageProperties);
PageProperties pageProperties = PageProperties(100, 200);
document.setPageProperties(pageProperties);