跳到主要内容

GetClassType

返回 ApiComboBoxForm 类的类型。

语法

expression.GetClassType();

expression - 表示 ApiComboBoxForm 类的变量。

参数

此方法没有任何参数。

返回值

"comboBoxForm"

示例

此示例获取类类型并将其插入到文档中。

// How get a class type of ApiComboBoxForm.

// Retrieve class type of a created combobox object and display it.

let doc = Api.GetDocument();
let comboBoxForm = Api.CreateComboBoxForm({"key": "Personal information", "tip": "Choose your country", "required": true, "placeholder": "Country", "editable": false, "autoFit": false, "items": ["Latvia", "USA", "UK"]});
let paragraph = doc.GetElement(0);
paragraph.AddElement(comboBoxForm);
let classType = comboBoxForm.GetClassType();
paragraph = Api.CreateParagraph();
paragraph.AddText("Class type: " + classType);
doc.Push(paragraph);