Points

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

Read/write line vertices.

public new Point3DCollection Points { get; }

Property value

A Point3DCollection, always the same instance for each line. The collection works directly on the line's vertices: each change applies to the line and updates its minimum and maximum coordinates.

If the line is read-only (belongs to a drawing file), methods modifying the collection (Add, Insert, Remove, RemoveAt, Clear and the indexer's set accessor) throw InvalidOperationException.

This property hides ReadOnlyLine.Points. A variable of type ReadOnlyLine reads the base class property, which returns a copy of the vertices made on the first read.

Example

var línea = new Line(new Code("020400"));
línea.Points.Add(new Point3D(0, 0, 100));
línea.Points.Add(new[] { new Point3D(10, 0, 100), new Point3D(20, 5, 101) });
línea.Points[0] = new Point3D(0, 1, 100);
línea.Points.RemoveAt(2);