ShowDialog Method
- Namespace
TXTextControl.DocumentServer. Fields
- Package
TXTextControl.asTextControl. WinForms. SDK TXDocumentServer.from the private NuGet feed or Text Control Offline Packagesdll
Description
Opens the specific field options dialog box.
Syntax
ShowDialog()
Opens the specific field options dialog box with LTR flow direction.
public DialogResult ShowDialog();Public Function ShowDialog() As DialogResultShowDialog(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);Public Function ShowDialog(rightToLeft As Boolean) As DialogResult| Parameter | Description |
|---|---|
| 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);Public Function ShowDialog(owner As Object) As DialogResult| Parameter | Description |
|---|---|
| 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);Public Function ShowDialog(owner As Object, rightToLeft As Boolean) As DialogResult| Parameter | Description |
|---|---|
| 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}");Dim result = fieldAdapter.ShowDialog("Approved", True)
Console.WriteLine($"Show Dialog result: {result}")