ApiContentControlListEntry

class ApiContentControlListEntry

Description

Class representing an entry of the combo box / dropdown list content control.

Instance Methods

GetClassType(): contentControlList

Returns a type of the ApiContentControlListEntry class.

GetParent(): ApiContentControlList

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

Select(): boolean

Selects the list entry in the combo box / dropdown list content control and sets the text of the content control to the selected item value.

MoveUp(): boolean

Moves the current item in the parent combo box / dropdown list content control up one element.

MoveDown(): boolean

Moves the current item in the parent combo box / dropdown list content control down one element, so that it is after the item that originally followed it.

GetIndex(): number

Returns an index of the content control list item in the combo box / dropdown list content control.

SetIndex(nIndex): boolean

Sets an index to the content control list item in the combo box / dropdown list content control.

Delete(): boolean

Deletes the specified item in the combo box / dropdown list content control.

GetText(): string

Returns a String that represents the display text of a list item for the combo box / dropdown list content control.

SetText(sText): boolean

Sets a String that represents the display text of a list item for the combo box / dropdown list content control.

GetValue(): string

Returns a String that represents the value of a list item for the combo box / dropdown list content control.

SetValue(sValue): boolean

Sets a String that represents the value of a list item for the combo box / dropdown list content control.

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).