GetClassType
返回 ApiCustomProperties 类的类型。
语法
expression.GetClassType();
expression - 表示 ApiCustomProperties 类的变量。
参数
此方法没有任何参数。
返回值
"customProperties"
示例
此示例演示如何获取 ApiCustomProperties 的类类型。
const doc = Api.GetDocument();
const customProps = doc.GetCustomProperties();
const classType = customProps.GetClassType();
let paragraph = doc.GetElement(0);
paragraph.AddText("ApiCustomProperties class type: " + classType);