TX Text Control .NET for WPF

ListItems Property

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

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.");
}