TRVPrint.GetHeaderRect

<< Click to display table of contents >>

TRVPrint.GetHeaderRect

Returns coordinates of the header for the page PageNo (from 1), in printer pixels

function GetHeaderRect(PageNo: Integer): TRVCoordRect;

(introduced in version 1.7; the parameter is added in version 15)

If the header is empty, the function returns an empty rectangle (Rect(0,0,0,0)).

This function may be called only when the document is prepared for printing (see FormatPages)

This function can be used in OnPagePrepaint and OnPagePostpaint events.

See also:

SetHeader;

GetFooterRect.