An instance of the ConditionalInstructionCollection class contains all conditional instructions in a Text Control document or part of the document represented through objects of type ConditionalInstruction. An instance of this class can be obtained with the FormFieldCollection.ConditionalInstructions property. The ConditionalInstructionCollection class implements the IEnumerable and the ICollection interfaces.

Syntax

public class ConditionalInstructionCollection : ICollection, IEnumerable

Introduced: X18.

Methods

Method Description
Add Inserts an instance of the class ConditionalInstruction to the collection and the document.
Clear Removes all conditional instructions from the collection and the document.
CopyTo Copies the elements of the collection to an array, starting at a particular index.
GetEnumerator Returns an enumerator that can be used to iterate through the collection.
GetItem Gets that ConditionalInstruction element from the collection, where the Name property value equals the specified name.
GetItems Gets those ConditionalInstruction elements from the collection, where at least one Condition or Instruction element references the specified FormField.
IsValueValid Returns a value indicating whether the value of a specific form field is marked as valid.
Remove Removes that ConditionalInstruction element from the collection and the document, where the Name property value equals the specified name.

Properties

Property Description
ConditionalInstructionNames Gets the names of all ConditionalInstruction elements that are listed inside the collection.
Count Gets the number of elements contained in the collection.