Table of Contents

Class CadLinetypeElement

Namespace
OpenCAD2D
Assembly
OpenCAD2D.Core.dll

An element of a linetype's pattern as a .lin file writes it: a length (above nought a dash, below a gap, nought a dot), and the text or shape in brackets after it, if any. -2.4,["GAS",STANDARD,S=1.2,R=0.0,X=-1.2,Y=-0.6] is a gap 2.4 long carrying the text GAS in the style STANDARD, 1.2 high, 1.2 back and 0.6 down from the gap's end.

public sealed class CadLinetypeElement
Inheritance
CadLinetypeElement
Inherited Members

Constructors

CadLinetypeElement(double)

Makes an element of a length alone.

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

Makes an element carrying a text or a shape.

Properties

Kind

Gets what the element carries.

Length

Gets the length: above nought a dash, below a gap, nought a dot.

Rotation

Gets the rotation, in degrees.

RotationKind

Gets what the rotation is measured from.

Scale

Gets the scale (S); 1 where the file gives none.

Style

Gets the text style of a text, or the file of shapes of a shape; null for a dash.

Value

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

X

Gets the offset along the line (X).

Y

Gets the offset across the line (Y).

Methods

ToString()

Gets the element as the file writes it: -2.4,["GAS",STANDARD,S=1.2,R=0,X=-1.2,Y=-0.6].