Table of Contents

Constructor CadLinetypeElement

Namespace
OpenCAD2D
Assembly
OpenCAD2D.Core.dll

CadLinetypeElement(double)

Makes an element of a length alone.

public CadLinetypeElement(double length)

Parameters

length double

Above nought a dash, below a gap, nought a dot.

Exceptions

ArgumentOutOfRangeException

Thrown when the length is not a finite number.

CadLinetypeElement(double, CadLinetypeElementKind, string, string, double, double, CadLinetypeRotation, double, double)

Makes an element carrying a text or a shape.

public CadLinetypeElement(double length, CadLinetypeElementKind kind, string value, string style, double scale, double rotation, CadLinetypeRotation rotationKind, double x, double y)

Parameters

length double

Above nought a dash, below a gap, nought a dot.

kind CadLinetypeElementKind

What it carries.

value string

The text, or the shape's name or number; null for a dash.

style string

The text style of a text, or the file of shapes of a shape (ltypeshp.shx); null for a dash.

scale double

The scale (S): the height of a text, the size of a shape.

rotation double

The rotation in degrees.

rotationKind CadLinetypeRotation

What the rotation is measured from.

x double

The offset along the line (X).

y double

The offset across it (Y).

Exceptions

ArgumentOutOfRangeException

Thrown when a number is not finite.

ArgumentException

Thrown when a text or shape is given no value or style.