ClearFormat
Clears format of field.
Syntax
expression.ClearFormat();
expression - A variable that represents a ApiComboboxField class.
Parameters
This method doesn't have any parameters.
Returns
boolean
Example
This example gets text field and sets number format for it and then clear format.
- Code
- Result
let doc = Api.GetDocument();
let page = doc.GetPage(0);
let comboboxField = Api.CreateComboboxField([10, 10, 160, 30]);
page.AddObject(comboboxField);
comboboxField.SetNumberFormat(0, "us", "black-minus", "$", true);
comboboxField.SetValue('-1000');
comboboxField.ClearFormat();