跳到主要内容

SetText

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

Syntax

expression.SetText(sText);

expression - A variable that represents a ApiContentControlListEntry class.

Parameters

NameRequired/OptionalData typeDefaultDescription
sTextRequiredstringThe display text of a list item.

Returns

boolean

Example

This example sets a string that represents the display text of a list item for a drop-down list or combo box content control.

// todo_example