跳到主要内容

SetIndex

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

Syntax

expression.SetIndex(nIndex);

expression - A variable that represents a ApiContentControlListEntry class.

Parameters

NameRequired/OptionalData typeDefaultDescription
nIndexRequirednumberAn index of the content control list item.

Returns

boolean

Example

This example sets the index of a content control list item in the collection of list items.

// todo_example