ConditionalInstructions 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 a collection of all conditional instructions that references to the form fields of the collection. The property's value is an object of type ConditionalInstructionCollection.
Syntax
public ConditionalInstructionCollection ConditionalInstructions { get; }Public ReadOnly Property ConditionalInstructions As ConditionalInstructionCollectionExamples
The following example works with form fields in the current document by using FormFieldCollection.ConditionalInstructions.
textControl.Text = "Customer: Contoso Ltd.";
textControl.Select(10, 12);
FormFieldCollection formFieldCollection = textControl.FormFields;
formFieldCollection.Add(new CheckFormField(false) { Name = "AcceptTerms", ID = 100 });
foreach (ConditionalInstruction conditionalInstruction in formFieldCollection.ConditionalInstructions)
{
conditionalInstruction.Name = "CustomerName";
}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 })
For Each conditionalInstruction As ConditionalInstruction In formFieldCollection.ConditionalInstructions
conditionalInstruction.Name = "CustomerName"
NextLimitations
Read only.
Remarks
The collection cannot be modified, if the TextControl.IsFormFieldValidationEnabled property value is set to false or the TextControl.EditMode is set to EditMode.ReadAndSelect.