GetPageHeight
获取当前节的页面高度。
语法
expression.GetPageHeight();
expression - 表示 ApiSection 类的变量。
参数
此方法没有任何参数。
返回值
示例
读取文档中节定义的页面高度。
// How do I find out the page height for a section in a document?
// Retrieve the vertical page size to verify or display layout dimensions in a document.
let doc = Api.GetDocument();
let paragraph = doc.GetElement(0);
let section = doc.GetFinalSection();
let height = section.GetPageHeight();
paragraph.AddText("Page height = " + height);