Method Prepend
- Namespace
- GeometryHelper.Dxf
- Assembly
- GeometryHelper.dll
Prepend(DxfEntity)
Puts an entity first in the group, as AutoCAD's Prepend.
public void Prepend(DxfEntity entity)
Parameters
entityDxfEntityThe entity, of the group's drawing and not in the group.
Exceptions
- ArgumentNullException
Thrown when the entity is null.
- ArgumentException
Thrown when the entity is in the group already, or is not an entity of the group's drawing.
- InvalidOperationException
Thrown when the group is in no file, or is erased.
Prepend(IEnumerable<DxfEntity>)
Puts entities first in the group, in their order, as AutoCAD's Prepend of a collection.
public void Prepend(IEnumerable<DxfEntity> entities)
Parameters
entitiesIEnumerable<DxfEntity>The entities.
Exceptions
- ArgumentNullException
Thrown when the entities or one of them are null.
- ArgumentException
Thrown when one is in the group already or given twice, or is not an entity of the group's drawing.
- InvalidOperationException
Thrown when the group is in no file, or is erased.