TE Edit Control Java / HTML-JavaScript Help
Product page

TerGetPagePos

Get the current page number and the display offset.

boolean TerGetPagePos( out page, out y)

Upon a successful return from this method, the following information can be retrieved by using TerGetOutInt methods:

int page;

The current page number

Upon a successful return from this method, this value can be retrieve as following:

page=tej.TerGetOutInt("CurPage")
int y;

The offset of the top of the window relative to the top of the page. This value is returned in twips unit.

Upon a successful return from this method, this value can be retrieve as following:

y=tej.TerGetOutInt("PageOffset")

Return Value: This function returns true when successful.