Table of Contents

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

name string

The name shown, as "ISO A3".

width double

The width in millimetres, as the name gives it.

height double

The height in millimetres.

marginLeft double

The margin at the left, in millimetres.

marginBottom double

The margin at the bottom.

marginRight double

The margin at the right.

marginTop double

The 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.