TX Text Control .NET for WPF

SignatureFieldLayoutDialog Method

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

Description

Invokes the built-in dialog box for alter the layout settings, the size and the text distances of a signature field. This dialog can only be invoked, if a signature field has been selected.

Syntax

SignatureFieldLayoutDialog()

Opens the dialog box showing the last opened tab.

public DialogResult SignatureFieldLayoutDialog();

SignatureFieldLayoutDialog(int)

Opens the dialog box showing the specified tab.

public DialogResult SignatureFieldLayoutDialog(int activeTab);
ParameterDescription
activeTab

Specifies the index of the tab, zero-based, that is displayed when the tabbed dialog box is opened. If this parameter is 0, the dialog box shows the tab for setting text wrapping and layout attributes, if this parameter is 1, the dialog box shows the tab for setting size and distances and if it is 2, the dialog shows the tab for setting the signature image's saving attributes. 2 can only be used, if an signature image has been set.

Return Value

If the dialog has been left with the Cancel button the return value is DialogResult.Cancel. Otherwise, it is DialogResult.OK.

Examples

The following example opens the signature field layout dialog for the text control.

var result = textControl.SignatureFieldLayoutDialog(10);
Console.WriteLine($"Signature Field Layout Dialog result: {result}");