跳到主要内容

GetClassType

返回 ApiCustomXmlParts 类的类型。

语法

expression.GetClassType();

expression - 表示 ApiCustomXmlParts 类的变量。

参数

此方法没有任何参数。

返回值

"customXmlParts"

示例

此示例演示如何获取自定义 XML 部件管理器的类类型。

let doc = Api.GetDocument();
let xmlManager = doc.GetCustomXmlParts();
let classType = xmlManager.GetClassType();
let infoParagraph = Api.CreateParagraph();
infoParagraph.AddText("Class type: " + classType);
doc.Push(infoParagraph);