TX Text Control .NET Server

Remove Method

Method|Introduced in 31.0
Namespace
TXTextControl
Package
TXTextControl.TextControl.Core.SDK as TXTextControl.Core.dll from the private NuGet feed or Text Control Offline Packages
Also in
TXTextControl.TextControl.ASP.SDK as TXTextControl.dll

Description

Removes a signature field from a Text Control document.

Syntax

public bool Remove(SignatureField signatureField);

Parameters

ParameterDescription
signatureField

Specifies the signature field to remove.

Return Value

The return value is true, if the signature field could be removed. Otherwise, it is false.

Examples

The following example works with signature fields in the current document by using SignatureFieldCollection.Remove.

SignatureFieldCollection signatureFieldCollection = textControl.SignatureFields;
signatureFieldCollection.Add(new SignatureField(new System.Drawing.Size(3000, 1000), "ApproverSignature", 100), FrameInsertionMode.AsCharacter);

if (signatureFieldCollection.Remove(new SignatureField(new System.Drawing.Size(600, 400), "CustomerName", 100)))
{
    Console.WriteLine("Remove completed successfully.");
}