Paragraph.Alignment
Returns/sets the alignment of the paragraph.
SVB Example
Customizing paragraph formatting:
Option Base 1 Option Explicit Sub Main Dim ExampleString As String 'store text into the String variable Example String ExampleString = "The most convenient place to get help and access a vast repository of information about Statistica is the Electronic Manual (select Statistica Help from the Help menu). This hypertext document offers much more than just an explanation of the options in Statistica. It includes examples, overviews, and illustrations, as well as thousands of tips on how to optimize your work." Dim R As Report 'create a new report entitled "Paragraph" Set R = Reports.New("Paragraph") 'place the text stored in ExampleString into the Report using the selection text property r.SelectionText = ExampleString Dim ExParagraph As Paragraph 'set the Paragraph variable ExParagraph to the Report Selection Paragraph Set ExParagraph = R.SelectionParagraph 'apply regular bullets to the report paragraph ExParagraph.BulletStyle = scParagraphBulletRegular 'set the alignment of the paragraph to Right Alignment 'the selected text in the report will be right justified ExParagraph.Alignment = scParagraphAlignmentRight 'display the report r.Visible = True End Sub
Copyright © 2020. Cloud Software Group, Inc. All Rights Reserved.