GetItems Method
- 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 those ConditionalInstruction elements from the collection, where at least one Condition or Instruction element references the specified FormField.
Syntax
public ConditionalInstruction[] GetItems(FormField formField);Public Function GetItems(formField As FormField) As ConditionalInstruction()Parameters
| Parameter | Description |
|---|---|
| formField | Specifies the |
Return Value
The return value is null, if the TextControl.IsFormFieldValidationEnabled property is set to false. Otherwise an array of all ConditionalInstruction elements that references the specified FormField is returned.
Examples
The following example retrieves items from the conditional instruction collection.
ConditionalInstruction[] results = conditionalInstructionCollection.GetItems(new TXTextControl.CheckFormField(true));
foreach (ConditionalInstruction conditionalInstruction in results)
{
Console.WriteLine(conditionalInstruction);
}Dim results As ConditionalInstruction() = conditionalInstructionCollection.GetItems(New TXTextControl.CheckFormField(True))
For Each conditionalInstruction As ConditionalInstruction In results
Console.WriteLine(conditionalInstruction)
Next