BBjFormParagraph::setHorizontalAlignment

Description

In BBj 4.0 and higher, this method sets the horizontal alignment of text in the paragraph from the constants provided.

Syntax

Return Value

Method

void

setHorizontalAlignment(int alignment)

Parameters

Variable

Description

alignment

Specifies the alignment of the paragraph's text as provided by the constants.

 

BBjFormParagraph::CENTER_JUSTIFIED
BBjFormParagraph::FULL_JUSTIFIED
BBjFormParagraph::LEFT_JUSTIFIED
BBjFormParagraph::RIGHT_JUSTIFIED

Center each line of the paragraph.
Fill all available horizontal space.
Align each line to the left.
Align each line to the right.

Return Value

None.

Remarks

None.

Example

rem 'Set paragraph horizontal alignment

rem 'Obtain the instance to the BBjAPI object
myAPI! = BBjAPI()

rem 'Obtain an instance of a default BBjPrinter object
let myBBjPrinter! = myAPI!.getBBjPrinter(0)

rem 'Get BBjForm for the selected printer
let myBBjForm! = myBBjPrinter!.getForm(1)

rem 'Get a new page
let myBBjFormPage! = myBBjForm!.createPage()

rem 'Get a new paragraph
let para! = myBBjFormPage!.newParagraph()

rem 'Set paragraph horizontal alignment
para!.setHorizontalAlignment(para!.LEFT_JUSTIFIED)
release

See Also

BBjAPI

See the BBj Object Diagram for an illustration of the relationship between BBj Objects.