Constructor CadLinetypeElement
- Namespace
- OpenCAD2D
- Assembly
- OpenCAD2D.Core.dll
CadLinetypeElement(double)
Makes an element of a length alone.
public CadLinetypeElement(double length)
Parameters
lengthdoubleAbove 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
lengthdoubleAbove nought a dash, below a gap, nought a dot.
kindCadLinetypeElementKindWhat it carries.
valuestringThe text, or the shape's name or number; null for a dash.
stylestringThe text style of a text, or the file of shapes of a shape (ltypeshp.shx); null for a dash.
scaledoubleThe scale (S): the height of a text, the size of a shape.
rotationdoubleThe rotation in degrees.
rotationKindCadLinetypeRotationWhat the rotation is measured from.
xdoubleThe offset along the line (X).
ydoubleThe 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.