Home > BSPrinter documentation > Reference

TopMargin Property


Applies to: PrintPreview control , IPrinterEx object


Type: Single


Description:

Returns or sets a value in millimeters or inches, depending of the setting of the MarginUnits property, that determines the top margin that will be set in new pages. When the current page is other than the last page, it returns the margin value of the current page.
The default setting is 25.4 mm or 1 inch.

Note: if you change margins while the PrepareReport event is executing, the user won't be allowed to change the margins from the dialogs. If you want to set default margins and allow the user to change them, do it before showing the dialog.

See Also:

LeftMargin property
RightMargin property
BottomMargin property
TopNonPrintableArea property
MinTopMargin property
TopMarginEffective property
MarginUnits property