FileName Property
- Namespace
TXTextControl
- Package
TXTextControl.asTextControl. WPF. SDK TXTextControl.from the private NuGet feed or Text Control Offline Packagesdll
Description
Gets or sets the corresponding file name and path from which the image has been loaded.
Syntax
public string FileName { get; set; }Public Property FileName As StringExamples
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}");
}Dim signatureImage As New SignatureImage("Images\alex-smith-signature.svg", 0)
Dim approval As New SignatureField(New System.Drawing.Size(3000, 1000), "ApproverSignature", 10) With { .Image = signatureImage }
textControl.SignatureFields.Add(approval, FrameInsertionMode.AsCharacter)
signatureImage.FileName = "Images\alex-smith-signature.svg"
If Not String.IsNullOrWhiteSpace(signatureImage.FileName) Then
Console.WriteLine($"File Name: {signatureImage.FileName}")
End If