Constructor CadPaper
- Namespace
- OpenCAD2D
- Assembly
- OpenCAD2D.Core.dll
CadPaper(string, double, double, double, double, double, double)
Makes a sheet.
public CadPaper(string name, double width, double height, double marginLeft, double marginBottom, double marginRight, double marginTop)
Parameters
namestringThe name shown, as "ISO A3".
widthdoubleThe width in millimetres, as the name gives it.
heightdoubleThe height in millimetres.
marginLeftdoubleThe margin at the left, in millimetres.
marginBottomdoubleThe margin at the bottom.
marginRightdoubleThe margin at the right.
marginTopdoubleThe margin at the top.
Exceptions
- ArgumentNullException
Thrown when the name is null.
- ArgumentException
Thrown when the name is blank, a size is not a finite number above nought, a margin is not a finite number of nought or more, or the margins leave no room on the sheet.