Constructors

Namespace: Digi21.DigiNG.Entities
Assembly: Digi21.DigiNG

Constructors of Line. Both create a line without vertices, belonging to no drawing file, with empty Attributes and no color, line weight or fill color of its own.

Line(Code)

public Line(Code code)

Creates a line with one code.

Parameter Description
code Line code.
var línea = new Line(new Code("020400"));

Line(IEnumerable<Code>)

public Line(IEnumerable<Code> codes)

Creates a line with the codes in codes, in enumeration order. An empty enumeration creates a line without codes.

Parameter Description
codes Line codes.
Exception When
NullReferenceException codes is null.
var línea = new Line(new[]
{
    new Code("020400"),
    new Code("ABCDE"),
});