TSRichViewEdit.TopMarginPix, TopMargin100Pix

<< Click to display table of contents >>

TSRichViewEdit.TopMarginPix, TopMargin100Pix

Returns the top margin, in pixels.

property TopMarginPix: Integer;

property TopMargin100Pix: Integer;

The top margin is defined in PageProperty.TopMargin. These properties return this margin converted to pixels.

TopMarginPix is scaled according to ViewProperty.ZoomPercent (so this property returns the margin as it is displayed on the screen).

TopMargin100Pix is not scaled, it is the margin in 96 DPI and 100% zooming:

TopMarginPix := TopMargin100Pix * (ZoomPercent / 100) * (<screen DPI> / 96).

See also:

LeftMarginPix

RightMarginPix

BottomMarginPix