Holes
Namespace: Digi21.DigiNG.Entities
Assembly: Digi21.DigiNG
Polygon holes.
public IReadOnlyList<ReadOnlyLine> Holes { get; }
Property value
A read-only collection of holes, in order. Each hole is a closed line. Holes of a polygon belonging to a drawing file have that file as Owner and are read-only.
The first read creates the collection, and subsequent reads return the same instance. The collection reflects the polygon's holes at any given time.
In a Polygon, Polygon.Holes hides this property and returns a read/write collection.
Example
foreach (var hueco in polígono.Holes)
Console.WriteLine($"Hueco de {hueco.Points.Count} vértices");