AccusoftPrintPro8 ActiveX DLL > PrintPro Object : AutoMargin Property |
Visual Basic |
---|
Public Property AutoMargin As Boolean |
Returns or sets a Boolean value that specifies whether the BMargin, LMargin, TMargin, CurrentX and CurrentY properties should automatically be set to values inside the display area.
If the AutoMargin property is set to True (Default), the BMargin, LMargin, TMargin, CurrentX and CurrentY properties are set whenever a paper size is selected as follows: The LMargin and CurrentX properties are set to the left edge of the display area. The TMargin, BMargin and CurrentY properties are set to the top edge of the display area.
Note: The coordinate system used by the PrintPRO control is based on the physical dimensions of the paper. This means that the 0,0 coordinate is the upper left corner of the printed page. The display area that is located inside the physical area. This is the area that is normally used for printing. The AutoMargin property automatically sets the margins and the CurrentX and CurrentY properties so that printed text, using the PrintText method, appears inside the display area. If you want to set the margins manually, you can use the DisplayX and DisplayY properties to get the margin values.