Format Property
- Namespace
TXTextControl
- Package
TXTextControl.asTextControl. WPF. SDK TXTextControl.from the private NuGet feed or Text Control Offline Packagesdll
Description
Gets or sets the paragraph's formatting attributes. The property's value is an object of the type ParagraphFormat.
Syntax
public ParagraphFormat Format { get; set; }Public Property Format As ParagraphFormatExamples
The following example examines the first paragraph in a short document by using Paragraph.Format.
textControl.Text = "Quarterly results\nRevenue increased by 12%.";
Paragraph paragraph = textControl.Paragraphs[1];
paragraph.Format = new ParagraphFormat();
paragraph.Select();textControl.Text = "Quarterly results" & vbCrLf & "Revenue increased by 12%."
Dim paragraph As Paragraph = textControl.Paragraphs(1)
paragraph.Format = New ParagraphFormat()
paragraph.Select()