GetClassType
返回 ApiCustomXmlParts 类的类型。
语法
expression.GetClassType();
expression - 表示 ApiCustomXmlParts 类的变量。
参数
此方法没有任何参数。
返回值
"customXmlParts"
示例
获取文档中自定义 XML 部件的类类型。
// How to identify the class type of a custom XML parts in a document?
// Obtain the class type identifier of a custom XML parts object in a document.
let doc = Api.GetDocument();
let xmlManager = doc.GetCustomXmlParts();
let classType = xmlManager.GetClassType();
let infoParagraph = Api.CreateParagraph();
infoParagraph.AddText("Class type: " + classType);
doc.Push(infoParagraph);