ApiContentControlList

class ApiContentControlList

Description

Class representing a list of values of the combo box / dropdown list content control.

Instance Methods

GetClassType(): contentControlList

Returns a type of the ApiContentControlList class.

GetAllItems(): ApiContentControlListEntry[]

Returns a collection of items (the ApiContentControlListEntry objects) of the combo box / dropdown list content control.

GetElementsCount(): number

Returns a number of items of the combo box / dropdown list content control.

GetParent(): ApiInlineLvlSdt | ApiBlockLvlSdt

Returns a parent of the combo box / dropdown list content control.

Add(sText, sValue, nIndex): boolean

Adds a new value to the combo box / dropdown list content control.

Clear()

Clears a list of values of the combo box / dropdown list content control.

GetItem(nIndex): ApiContentControlListEntry

Returns an item of the combo box / dropdown list content control by the position specified in the request.

Get Help

  • If you have any questions about ONLYOFFICE Docs, try the FAQ section first.
  • You can request a feature or report a bug by posting an issue on GitHub.
  • You can also ask our developers on ONLYOFFICE forum (registration required).