Method RemoveAt
- Namespace
- GeometryHelper.Dxf
- Assembly
- GeometryHelper.dll
RemoveAt(int)
Takes the entity at an index out of the group, as AutoCAD's RemoveAt.
public void RemoveAt(int index)
Parameters
indexintThe index, from 0 to NumEntities less one.
Exceptions
- ArgumentOutOfRangeException
Thrown when the index is outside the group.
- InvalidOperationException
Thrown when the group is in no file, or is erased.
RemoveAt(int, IEnumerable<DxfEntity>)
Takes entities out of the group, each found at or after an index, as AutoCAD's RemoveAt of an index and a
collection.
public void RemoveAt(int index, IEnumerable<DxfEntity> entities)
Parameters
indexintThe index the search for each begins at.
entitiesIEnumerable<DxfEntity>The entities.
Exceptions
- ArgumentNullException
Thrown when the entities or one of them are null.
- ArgumentOutOfRangeException
Thrown when the index is outside 0 to NumEntities.
- ArgumentException
Thrown when one is not in the group at or after the index, or is given twice; none is taken out then.
- InvalidOperationException
Thrown when the group is in no file, or is erased.