EControl Syntax Editor SDK
TecSyntPrinter.OnForceNewPage Event

Occurs for each line processing during page building.

property OnForceNewPage: TOnForceNewPage;

Write OnForceNewPage event handler to perform custom page breaking. 

PrintRect - printable area of the page. 

Line - current processed line. 

LineHeight - height of this line. 

LineTop - position of the line in the page. 

To force new page on this line you need to set ForceNewPage to True.

Copyright (c) 2004-2011. All rights reserved.
What do you think about this topic? Send feedback!