Property
Paragraph.Alignment
Warning
This item was deprecated in version 2019r2. Please use Paragraph.TextAlignment as a replacement.
Description
Gets the text Alignment of the paragraph.
Notes
You can use either the integer values or the class constants, AlignDefault, AlignLeft, AlignCenter, or AlignRight, to set or get the Alignment:
Name |
Description |
---|---|
AlignDefault |
Default alignment |
AlignLeft |
Left alignment |
AlignCenter |
Centered alignment |
AlignRight |
Right alignment |
To set the Alignment of a paragraph, call the ParagraphAlignment method of the StyledText class. You can use the Paragraph or the TextField Alignment constants to set a paragraph Alignment using the ParagraphAlignment method.
Sample code
This is an example of a right-aligned first paragraph.
Dim st As New StyledText
st = TextArea1.StyledText
TextArea1.AppendText("This is the appended text.")
st.Bold(0, 4) = True
st.ParagraphAlignment(0) = Paragraph.AlignRight
Compatibility
All project types on all supported operating systems.