Links
EControl Syntax Editor SDK
TecCustomPrinter.GetFields Method

Returns margins in the printable area in device units.

function GetFields(Canvas: TCanvas; Page: integer): TRect; virtual;

GetFields is a protected virtual method which returns margins in the printable area in device units, that is: 

Result.Top returns margin between upper bound of the printable area and the page text. This margin is used for inserting headers. 

Result.Bottom returns margin between lower bound of the printable area and the page text. This margin is used for inserting footers. 

Result.Left returns margin between left bound of the printable area and the page text. This margin is used for inserting line numbers. 

Result.Right returns margin between right bound of the printable area and the page text. This margin is used for inserting line numbers. 

If some margin is equal to zero corresponding field is not printed.

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