Method Move
Move<T>(IEnumerable<T>, GeoVector2)
Moves objects by a displacement, as MOVE does: a line from (0, 0) to (100, 0) moved by (10, 5) runs from (10, 5) to (110, 5) in the app. Sends the queued changes with it.
public IReadOnlyList<T> Move<T>(IEnumerable<T> objects, GeoVector2 displacement) where T : DxfEntity
Parameters
objectsIEnumerable<T>Objects read from this drawing (GetObject(string), GetObjects(CadObjectFilter), or what an edit gave back).
displacementGeoVector2The displacement, in the world.
Returns
- IReadOnlyList<T>
New copies of the objects as they are now, under the same handles, in the order given.
Type Parameters
TThe type of the objects given.
Exceptions
- ArgumentNullException
Thrown when the list is null.
- ArgumentException
Thrown when an object was not read from this drawing.
- ArgumentOutOfRangeException
Thrown when a number is not finite.
- CadRemoteException
Thrown when the app refuses: an object is gone, erased, inside a block, on a locked layer, or its owner does not allow the change. Nothing is applied.