Constructors
Namespace: Digi21.DigiNG.Entities
Assembly: Digi21.DigiNG
Constructors of Polygon. Both create a polygon without vertices or holes, belonging to no drawing file, with empty Attributes and no color, line weight or fill color of its own.
Polygon(Code)
public Polygon(Code code)
Creates a polygon with one code.
| Parameter | Description |
|---|---|
code |
Polygon code. |
var polígono = new Polygon(new Code("080100"));
Polygon(IEnumerable<Code>)
public Polygon(IEnumerable<Code> codes)
Creates a polygon with the codes in codes, in enumeration order. An empty enumeration creates a polygon without codes.
| Parameter | Description |
|---|---|
codes |
Polygon codes. |
| Exception | When |
|---|---|
NullReferenceException |
codes is null. |
var polígono = new Polygon(new[]
{
new Code("080100"),
new Code("ABCDE"),
});