AddComboBoxContentControl
Adds a new combo box content control to the document.
Syntax
expression.AddComboBoxContentControl(list, selected);
expression - A variable that represents a ApiDocument class.
Parameters
| Name | Required/Optional | Data type | Default | Description |
|---|---|---|---|---|
| list | Optional | ContentControlListItem[] | An array of objects representing the items in the combo box. | |
| selected | Optional | string | The optional value of the item that should be selected by default (must match one of the ListItem.Value). |
Returns
Example
Add a combo box content control to a document: in a document.
// How do I add the combo box content control in a document?
// Add the combo box content control using a document object.
let doc = Api.GetDocument();
doc.AddComboBoxContentControl();