ParagraphFormat Property
- Namespace
TXTextControl
- Package
TXTextControl.asTextControl. WinForms. SDK TXTextControl.from the private NuGet feed or Text Control Offline Packagesdll
Description
Gets or sets the style's paragraph attributes. 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 creates and configures a reusable paragraph style for the document by using ParagraphStyle.ParagraphFormat.
ParagraphStyle paragraphStyle = new("ReportHeading");
textControl.ParagraphStyles.Add(paragraphStyle);
paragraphStyle.ParagraphFormat = new ParagraphFormat();
if (paragraphStyle.ParagraphFormat != null)
{
Console.WriteLine("Paragraph Style: Paragraph Format is available.");
}Dim paragraphStyle As New ParagraphStyle("ReportHeading")
textControl.ParagraphStyles.Add(paragraphStyle)
paragraphStyle.ParagraphFormat = New ParagraphFormat()
If paragraphStyle.ParagraphFormat IsNot Nothing Then
Console.WriteLine("Paragraph Style: Paragraph Format is available.")
End If