Entities

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

Complex entities.

public IEnumerable<Entity> Entities { get; }

Property value

The complex's entities, in order, with each entity's type. Entities of a complex belonging to a drawing file have that file as Owner and are read-only.

Each call to GetEnumerator creates a new enumerator. MoveNext throws InvalidOperationException if the complex's entity count changes during iteration. In a Complex, Complex.Entities hides this property and returns a read/write collection.

Example

// complejo is a ReadOnlyComplex read from a file.
foreach (var parte in complejo.Entities)
    Console.WriteLine(parte.GetType().Name);