Constructor LabelLayout
LabelLayout(int, int, int, int, int, int, int, int, int, int)
Initializes a layout.
public LabelLayout(int pageWidth, int pageHeight, int topMargin, int sideMargin, int width, int height, int horizontalPitch, int verticalPitch, int across, int down)
Parameters
pageWidthintThe page's width.
pageHeightintThe page's height.
topMarginintFrom the page's top to the first label's.
sideMarginintFrom the page's left to the first label's.
widthintA label's width.
heightintA label's height.
horizontalPitchintFrom one label's left to the next one's.
verticalPitchintFrom one label's top to the next one's.
acrossintHow many labels across.
downintHow many labels down.
Exceptions
- ArgumentOutOfRangeException
A number is not one a sheet can have (a size not positive, a pitch smaller than the label, the labels off the page, too many labels).