BBjFormPage::newParagraph

Description

In BBj 4.0 and higher, this method obtains a new BBjFormParagraph object.

Syntax

Return Value

Method

BBjFormParagraph

newParagraph()

BBjFormParagraph

newParagraph(double x, double y, double width, double height)

Parameters

Variable

Description

x

Horizontal position of the upper left-hand corner of the element.

y

Vertical position of the upper left-hand corner of the element.

width

Width of the element.

height

Height of the element.

Return Value

Returns a new BBjFormParagraph object.

Remarks

None.

Example

REM Get a new paragraph

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()

RELEASE

See Also

BBjAPI

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