The Paragraph
public sealed class ParagraphStyle : FormattingStyle
Public NotInheritable Class ParagraphStyle
Inherits FormattingStyle
Introduced: 10.1.
The following example shows how to add and apply a Paragraph
textControl1.Text = "TX Text Control";
TXTextControl.ParagraphStyle par = new TXTextControl.ParagraphStyle("CenterBold");
par.Bold = true;
par.ParagraphFormat.Alignment = TXTextControl.HorizontalAlignment.Center;
textControl1.ParagraphStyles.Add(par);
textControl1.Select(0,0);
textControl1.Selection.FormattingStyle = "CenterBold";
TextControl1.Text = "TX Text Control"
Dim par As TXTextControl.ParagraphStyle = New TXTextControl.ParagraphStyle("CenterBold")
par.Bold = True
par.ParagraphFormat.Alignment = TXTextControl.HorizontalAlignment.Center
TextControl1.ParagraphStyles.Add(par)
TextControl1.Select(0, 0)
TextControl1.Selection.FormattingStyle = "CenterBold"
Constructor | Description |
---|---|
Paragraph |
Creates a new instance of the Paragraph |
Method | Description |
---|---|
Apply | Applies all set attributes of the style to the current document.
(Inherited from Formatting |
Property | Description |
---|---|
Auto |
Gets or sets values specifying automatic sub- or superscripted text.
(Inherited from Formatting |
Base |
Gets the Formatting (Inherited from Formatting |
Baseline | Gets or sets a user-defined baseline alignment, in twips, of the style.
(Inherited from Formatting |
Bold | Gets or sets the bold attribute of the style.
(Inherited from Formatting |
Capitals | Gets or sets values specifying wheather lowercase letters are displayed with capital letters.
(Inherited from Formatting |
Character |
Gets or sets the style's character scaling, in percent of the average character width.
(Inherited from Formatting |
Character |
Gets or sets the style's character spacing value, in twips.
(Inherited from Formatting |
Culture | Gets or sets the style's culture.
(Inherited from Formatting |
Following |
Gets or sets the name of the style that Text |
Font |
Gets or sets the font of the style.
(Inherited from Formatting |
Font |
Gets or sets the font's size of the style.
(Inherited from Formatting |
Fore |
Gets or sets the style's color used to display the text.
(Inherited from Formatting |
Italic | Gets or sets the italic attribute of the style.
(Inherited from Formatting |
List |
Gets or sets the style's bulleted or numbered list and/or its formatting attributes. |
Name | Gets or sets the name of the style.
(Inherited from Formatting |
Paragraph |
Gets or sets the style's paragraph attributes. |
Strikeout | Gets or sets the strikeout attribute of the style.
(Inherited from Formatting |
Text |
Gets or sets the style's text background color.
(Inherited from Formatting |
Underline | Gets or sets underlining styles for the style.
(Inherited from Formatting |
Learn more about the TXText