TRY NEW VERSION

Try now New API BETA

Try out the new view and capabilities of the API documentation

START

MoveDown

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.

Parameters:

This method doesn't have any parameters.

Returns:

Type
boolean

Example

Copy code
builder.CreateFile("docx");
var oDocument = Api.GetDocument();
Api.pluginMethod_AddContentControlList(1, [{Display: "Item1_D", Value: "Item1_V"}, {Display: "Item2_D", Value: "Item2_V"}], {"Id": 100, "Tag": "CC_Tag", "Lock": 3});
var aContentControls = oDocument.GetAllContentControls();
var oContentControlList = aContentControls[0].GetDropdownList();
oDocument.AddElement(0, oContentControlList);
var oItem = oContentControlList.GetItem(0);
oItem.MoveDown();
builder.SaveFile("docx", "MoveDown.docx");
builder.CloseFile();

Resulting document