GetItem Method
- Namespace
TXTextControl
- Package
TXTextControl.asTextControl. WinForms. SDK TXTextControl.from the private NuGet feed or Text Control Offline Packagesdll
Description
Gets that ConditionalInstruction element from the collection, where the Name property value equals the specified name.
Syntax
public ConditionalInstruction GetItem(string name);Public Function GetItem(name As String) As ConditionalInstructionParameters
| Parameter | Description |
|---|---|
| name | Specifies the name of the requested |
Return Value
The return value is null, if the TextControl.IsFormFieldValidationEnabled property is set to false or the collection does contain a ConditionalInstruction element with the specified name. Otherwise, the return value is an object of the type ConditionalInstruction with the specified name.
Examples
The following example retrieves item from the conditional instruction collection.
var result = conditionalInstructionCollection.GetItem("CustomerName");
Console.WriteLine($"Get Item result: {result}");Dim result = conditionalInstructionCollection.GetItem("CustomerName")
Console.WriteLine($"Get Item result: {result}")