TX Text Control .NET Server

Image Property

Property|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

Gets or sets a SignatureImage. The property's value is null, when the signature field has no signature image. When the property is set to null, a previously inserted image is removed.

Syntax

public SignatureImage Image { get; set; }

Examples

The following example adds a named signature field to the document by using SignatureField.Image.

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

signatureField.Image = new SignatureImage(new MemoryStream());
if (signatureField.Image != null)
{
    Console.WriteLine("Signature Field: Image is available.");
}