TSclRVRuler.GetPageProperties

<< Click to display table of contents >>

TSclRVRuler.GetPageProperties

The procedure returns margins and page size in the specified units. The returned values depend on the ruler type (horizontal/vertical).

procedure GetPageProperties(Units: TRulerUnits;

  var AMargin1, AMargin2, APageWidth: Extended);

Input parameters

Units – type of units: centimeters, millimeters, pixels etc. The output parameters are measured in these units.

Output parameters

AMargin1 – left margin (LeftMargin) for horizontal ruler, or top margin (TopMargin) for vertical ruler.

AMargin2 – right margin (RightMargin) for horizontal ruler, bottom margin (BottonMargin) for vertical ruler.

APageWidth – page width (PageWidth) for horizontal ruler, page height (PageHeight) for vertical ruler.