Table of Contents

Class CadLinetypeDefinition

Namespace
OpenCAD2D
Assembly
OpenCAD2D.Core.dll

A linetype of a .lin file: its name, its description and the elements of its pattern; or, where its pattern cannot be read, the fault. DASHED of the presenter's own set is *DASHED,Dashed __ __ __ and A,6,-1.5: a dash 6 long and a gap of 1.5, 7.5 in all.

public sealed class CadLinetypeDefinition
Inheritance
CadLinetypeDefinition
Inherited Members

Constructors

CadLinetypeDefinition(string, string, IEnumerable<CadLinetypeElement>)

Makes a linetype.

Properties

Description

Gets the description: what follows the comma of the name's line.

Elements

Gets the elements of the pattern, in order; none where it could not be read.

Fault

Gets why the pattern could not be read; null where it was.

IsComplex

Gets whether an element carries a text or a shape.

Name

Gets the name.

PatternLength

Gets the length of the pattern: its lengths together, whatever their sign; 7.5 for a dash of 6 and a gap of 1.5.

PatternText

Gets the pattern line as the file writes it: A,6,-1.5.

Methods

ToString()

Gets the two lines the file writes the linetype in, parted by a line feed: *DASHED,Dashed __ __ __ and A,6,-1.5.