FormattingStyle 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 style. The specified style must be the name of a style contained in the ParagraphStyles collection of a Text Control document.
Syntax
public string FormattingStyle { get; set; }Public Property FormattingStyle As StringExamples
The following example examines the first paragraph in a short document by using Paragraph.FormattingStyle.
textControl.Text = "Quarterly results\nRevenue increased by 12%.";
Paragraph paragraph = textControl.Paragraphs[1];
paragraph.FormattingStyle = "Heading 1";
paragraph.Select();textControl.Text = "Quarterly results" & vbCrLf & "Revenue increased by 12%."
Dim paragraph As Paragraph = textControl.Paragraphs(1)
paragraph.FormattingStyle = "Heading 1"
paragraph.Select()