Remove Method
- Namespace
TXTextControl
- Package
TXTextControl.asTextControl. WinForms. SDK TXTextControl.from the private NuGet feed or Text Control Offline Packagesdll
Description
Removes that ConditionalInstruction element from the collection and the document, where the Name property value equals the specified name.
Syntax
public bool Remove(string name);Public Function Remove(name As String) As BooleanParameters
| Parameter | Description |
|---|---|
| name | Specifies the name of the |
Return Value
The return value is true, if the specified ConditionalInstruction element was found and removed. Otherwise false. A ConditionalInstruction element won't be removed, if the TextControl.IsFormFieldValidationEnabled property is set to false or the TextControl.EditMode is set to EditMode.ReadAndSelect and TextControl.DocumentPermissions.ReadOnly to true.
Examples
The following example removes an item from the conditional instruction collection.
if (conditionalInstructionCollection.Remove("CustomerName"))
{
Console.WriteLine("Remove completed successfully.");
}If conditionalInstructionCollection.Remove("CustomerName") Then
Console.WriteLine("Remove completed successfully.")
End If