TX Text Control .NET Server

ListItems Property

Property|Introduced in 21.0
Namespace
TXTextControl.DocumentServer.Fields
Type
TXTextControl.DocumentServer.Fields.DropDownListContentControl
Package
TXTextControl.TextControl.Core.SDK as TXDocumentServer.Core.dll from the private NuGet feed or Text Control Offline Packages
Also in
TXTextControl.TextControl.ASP.SDK as TXDocumentServer.dll

Description

Gets or sets the list items of the content control field.

Syntax

public List<DropDownListItem> ListItems { get; set; }

Examples

The following example uses DropDownListContentControl.ListItems to configure list items as part of the drop down list content control workflow. The configured value is checked before the workflow continues.

dropDownListContentControl.ListItems = new List<TXTextControl.DocumentServer.Fields.DropDownListItem>();
if (dropDownListContentControl.ListItems != null)
{
    Console.WriteLine("Drop Down List Content Control: List Items is available.");
}