Item Property
- Namespace
TXTextControl
- Package
TXTextControl.asTextControl. WPF. SDK TXTextControl.from the private NuGet feed or Text Control Offline Packagesdll
Description
Gets the form field with the specified number from the collection. The number must be between 1 and Count. If the specified index is invalid, null is returned. In C# this property is the indexer for the FormFieldCollection class.
Syntax
public FormField this[int number] { get; }Default Public ReadOnly Property Item(number As Integer) As FormFieldExamples
The following example works with form fields in the current document by using FormFieldCollection.Item.
textControl.Text = "Customer: Contoso Ltd.";
textControl.Select(10, 12);
FormFieldCollection formFieldCollection = textControl.FormFields;
formFieldCollection.Add(new CheckFormField(false) { Name = "AcceptTerms", ID = 100 });
Console.WriteLine($"Item: {formFieldCollection[10]}");
Console.WriteLine("Form Field Collection is ready for use.");textControl.Text = "Customer: Contoso Ltd."
textControl.Select(10, 12)
Dim formFieldCollection As FormFieldCollection = textControl.FormFields
formFieldCollection.Add(New CheckFormField(False) With { .Name = "AcceptTerms", .ID = 100 })
Console.WriteLine($"Item: {formFieldCollection.Item(10)}")
Console.WriteLine("Form Field Collection is ready for use.")Limitations
Read only.