Items Property
- Namespace
TXTextControl
- Package
TXTextControl.asTextControl. Core. SDK TXTextControl.from the private NuGet feed or Text Control Offline PackagesCore. dll
- Also in
TXTextControl.asTextControl. ASP. SDK TXTextControl.dll
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; }Public Property Items As String()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.");
}Dim selectionFormField As New SelectionFormField(New String() { "Germany", "United Kingdom", "United States" }, 0) With { .Name = "Country" }
textControl.FormFields.Add(selectionFormField)
selectionFormField.Items = New String() { "Quarterly report" }
If selectionFormField.Items IsNot Nothing Then
Console.WriteLine("Selection Form Field: Items is available.")
End If