TX Text Control .NET for Windows Forms

Value Property

Property|Introduced in 29.0
Namespace
TXTextControl.DocumentServer.PDF.AcroForms
Package
TXTextControl.TextControl.WinForms.SDK as TXDocumentServer.dll from the private NuGet feed or Text Control Offline Packages

Description

Gets or sets the selected value of a choice list.

Syntax

public string Value { get; set; }

Examples

The following example uses FormChoiceField.Value to configure value as part of the form choice field workflow. The configured value is checked before the workflow continues.

formChoiceField.Value = "Quarterly report";
if (!string.IsNullOrWhiteSpace(formChoiceField.Value))
{
    Console.WriteLine($"Value: {formChoiceField.Value}");
}