ParagraphFormat Property
- Namespace
TXTextControl
- Package
TXTextControl.asTextControl. WinForms. SDK TXTextControl.from the private NuGet feed or Text Control Offline PackagesServer. dll
Description
Gets or sets the paragraph formatting attributes of the text displayed by the control. The property value is an object of the type ParagraphFormat. For more information see the description of the ParagraphFormat class.
Syntax
public ParagraphFormat ParagraphFormat { get; set; }Public Property ParagraphFormat As ParagraphFormatExamples
The following example centers the current paragraph by updating the control's paragraph format.
ParagraphFormat format = textControl.ParagraphFormat;
format.Alignment = TXTextControl.HorizontalAlignment.Center;
textControl.ParagraphFormat = format;Dim format As ParagraphFormat = textControl.ParagraphFormat
format.Alignment = TXTextControl.HorizontalAlignment.Center
textControl.ParagraphFormat = format