GetClassType
返回 ApiCustomXmlParts 类的类型。
语法
expression.GetClassType();
expression - 表示 ApiCustomXmlParts 类的变量。
参数
此方法没有任何参数。
返回值
"customXmlParts"
示例
获取电子表格中自定义 XML 部件的类类型。
// How to identify the class type of a custom XML parts in a spreadsheet?
// Obtain the class type identifier of a custom XML parts object in a spreadsheet.
let worksheet = Api.GetActiveSheet();
let xmlManager = worksheet.GetCustomXmlParts();
let classType = xmlManager.GetClassType();
worksheet.GetRange("A1").SetValue("XML manager class type: " + classType);