TX Text Control .NET for WPF

Image Property

Property|Introduced in 31.0
Namespace
TXTextControl
Package
TXTextControl.TextControl.WPF.SDK as TXTextControl.dll from the private NuGet feed or Text Control Offline Packages

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.");
}