SectionFormatDialog Method
- Namespace
TXTextControl.WPF
- Package
TXTextControl.asTextControl. WPF. SDK TXTextControl.from the private NuGet feed or Text Control Offline PackagesWPF. dll
Description
Invokes the built-in tabbed dialog box for setting section attributes. These are page settings such as margins and size, all settings concerning headers and footers, page columns and page borders.
Syntax
SectionFormatDialog()
Opens the dialog box showing the last opened tab.
public DialogResult SectionFormatDialog();Public Function SectionFormatDialog() As DialogResultSectionFormatDialog(int)
Opens the dialog box showing the specified tab.
public DialogResult SectionFormatDialog(int activeTab);Public Function SectionFormatDialog(activeTab As Integer) As DialogResult| Parameter | Description | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| activeTab | Specifies the index of the tab, zero-based, that is displayed when the tabbed dialog box is opened. The following values are possible:
|
Return Value
If the dialog is left with the Cancel button, the return value is DialogResult.Cancel. Otherwise, it is DialogResult.OK.
Examples
The following example opens the section format dialog for the text control.
var result = textControl.SectionFormatDialog(10);
Console.WriteLine($"Section Format Dialog result: {result}");Dim result = textControl.SectionFormatDialog(10)
Console.WriteLine($"Section Format Dialog result: {result}")