GetClassType
返回 ApiSection 类的类型。
语法
expression.GetClassType();
expression - 表示 ApiSection 类的变量。
参数
此方法没有任何参数。
返回值
"section"
示例
此示例获取类类型并将其插入到文档中。
// How to get a class type of ApiSection.
// Retrieve class type of ApiSection object and insert it to the document.
let doc = Api.GetDocument();
let paragraph = doc.GetElement(0);
let section = doc.GetFinalSection();
section.SetPageMargins(720, 720, 720, 720);
section.SetPageSize(7200, 4320);
let classType = section.GetClassType();
paragraph.AddText("Class Type = " + classType);