ParagraphFormat Property
- Namespace
TXTextControl
- Package
TXTextControl.asTextControl. WPF. SDK TXTextControl.from the private NuGet feed or Text Control Offline Packagesdll
Description
Gets or sets the formatting attributes of the selected paragraphs. The property's value is an object of the type ParagraphFormat.
Syntax
public ParagraphFormat ParagraphFormat { get; set; }Public Property ParagraphFormat As ParagraphFormatExamples
The following example formats the heading of a short document by using Selection.ParagraphFormat.
textControl.Text = "Quarterly results\nRevenue increased by 12%.";
textControl.Select(0, 17);
Selection selection = textControl.Selection;
selection.ParagraphFormat = new ParagraphFormat();
if (selection.ParagraphFormat != null)
{
Console.WriteLine("Selection: Paragraph Format is available.");
}textControl.Text = "Quarterly results" & vbCrLf & "Revenue increased by 12%."
textControl.Select(0, 17)
Dim selection As Selection = textControl.Selection
selection.ParagraphFormat = New ParagraphFormat()
If selection.ParagraphFormat IsNot Nothing Then
Console.WriteLine("Selection: Paragraph Format is available.")
End IfLimitations
Runtime only.