TXTextControl.WPF.TextControl.ParagraphFormatDialog Method

Invokes the built-in dialog box for setting the formatting attributes of a paragraph.

ParagraphFormatDialog()

Opens the dialog box showing its first tab.

[C#]
public DialogResult ParagraphFormatDialog();
[Visual Basic]
Public Function ParagraphFormatDialog() As DialogResult

ParagraphFormatDialog(Int32)

Opens the dialog box showing the specified tab.

[C#]
public DialogResult ParagraphFormatDialog(int activeTab);
[Visual Basic]
Public Function ParagraphFormatDialog(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. If this parameter is 0, the dialog box shows the tab for setting alignment, line spacing, indentation and Distances, and if this parameter is 1, the dialog box shows the tab for setting a frame and pagination.

Return Value

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

See Also