跳到主要内容

IsEditable

Checks if field is editable.

Syntax

expression.IsEditable();

expression - A variable that represents a ApiComboboxField class.

Parameters

This method doesn't have any parameters.

Returns

boolean

Example

This example gets editable property for combobox field and displays it.

let doc = Api.GetDocument();
let page = doc.GetPage(0);
let comboboxField = Api.CreateComboboxField([10, 10, 160, 30]);
page.AddObject(comboboxField);

comboboxField.SetEditable(true);
comboboxField.SetValue('Editable is: ' + comboboxField.IsEditable());