AddOption
Adds new option to list options.
Inherited from ApiBaseListField.AddOption.
Example
Add new options to field with list of options in a PDF document.
// How do I add the option in a PDF document?
// Add the option using a list field object in a PDF document.
let doc = Api.GetDocument();
let page = doc.GetPage(0);
let comboboxField = Api.CreateComboboxField([10, 10, 160, 30]);
page.AddObject(comboboxField);
comboboxField.AddOption('Option 1');
comboboxField.AddOption('Option 2');
comboboxField.AddOption('Option 3');
comboboxField.SetValueIndexes([0]);