TX Text Control .NET for Windows Forms

ShowDialog Method

Method|Introduced in 15.0
Namespace
TXTextControl.DocumentServer.Fields
Package
TXTextControl.TextControl.WinForms.SDK as TXDocumentServer.dll from the private NuGet feed or Text Control Offline Packages

Description

Opens the specific field options dialog box.

Syntax

ShowDialog()

Opens the specific field options dialog box with LTR flow direction.

public DialogResult ShowDialog();

ShowDialog(bool)

Opens the specific field options dialog box with the flow direction (RTL or LTR) set according to the boolean parameter value.

public DialogResult ShowDialog(bool rightToLeft);
ParameterDescription
rightToLeft

Sets the dialog layout flow direction. True sets the layout to RTL, false sets the layout to LTR.

ShowDialog(object)

Opens the specific field options dialog box with a specified owner window.

public DialogResult ShowDialog(object owner);
ParameterDescription
owner

Sets the dialog's owner window. For WPF dialogs this must be an object of type System.Windows.Window. For Windows Forms dialogs this must be an object implementing the interface System.Windows.Forms.IWin32Window (e. g. a Form).

ShowDialog(object, bool)

Opens the specific field options dialog box with an owner window and a flow direction.

public DialogResult ShowDialog(object owner, bool rightToLeft);
ParameterDescription
owner

Sets the dialog's owner window. For WPF dialogs this must be an object of type System.Windows.Window. For Windows Forms dialogs this must be an object implementing the interface System.Windows.Forms.IWin32Window (e. g. a Form).

rightToLeft

Sets the dialog layout flow direction. True sets the layout to RTL, false sets the layout to LTR.

Examples

The following example opens the show dialog for the field adapter.

var result = fieldAdapter.ShowDialog("Approved", true);
Console.WriteLine($"Show Dialog result: {result}");