TX Text Control .NET for WPF

FileName 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 the corresponding file name and path from which the image has been loaded.

Syntax

public string FileName { get; set; }

Examples

The following example adds a visible handwritten-signature image to an approval field by using SignatureImage.FileName.

SignatureImage signatureImage = new(@"Images\alex-smith-signature.svg", 0);
SignatureField approval = new(new System.Drawing.Size(3000, 1000), "ApproverSignature", 10) { Image = signatureImage };
textControl.SignatureFields.Add(approval, FrameInsertionMode.AsCharacter);

signatureImage.FileName = @"Images\alex-smith-signature.svg";
if (!string.IsNullOrWhiteSpace(signatureImage.FileName))
{
    Console.WriteLine($"File Name: {signatureImage.FileName}");
}