TX Text Control .NET for WPF

Items Property

Property|Introduced in 28.0
Namespace
TXTextControl
Package
TXTextControl.TextControl.WPF.SDK as TXTextControl.dll from the private NuGet feed or Text Control Offline Packages

Description

Gets or sets a list of items for the SelectionFormField. An item must not be an empty string.

Syntax

public string[] Items { get; set; }

Examples

The following example adds a country selector to a fillable form by using SelectionFormField.Items.

SelectionFormField selectionFormField = new(new[] { "Germany", "United Kingdom", "United States" }, 0) { Name = "Country" };
textControl.FormFields.Add(selectionFormField);

selectionFormField.Items = new string[] { "Quarterly report" };
if (selectionFormField.Items != null)
{
    Console.WriteLine("Selection Form Field: Items is available.");
}