TX Text Control .NET for Windows Forms

ExportFileName Property

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

Description

Gets or sets the file name used, if a Text Control document is saved. An empty string indicates that no export filename has currently be specified for the image. In this case either the original or a constructed filename is used. A filename is constructed in the following form: <document_filename>_<number>.<extension>

Syntax

public string ExportFileName { get; set; }

Examples

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

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.ExportFileName = @"Exports\alex-smith-signature.svg";
if (!string.IsNullOrWhiteSpace(signatureImage.ExportFileName))
{
    Console.WriteLine($"Export File Name: {signatureImage.ExportFileName}");
}