Table of Contents

Method Move

Namespace
OpenCAD2D
Assembly
OpenCAD2D.Core.dll

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). One undo step named MOVE.

public IReadOnlyList<T> Move<T>(IEnumerable<T> entities, GeoVector2 displacement) where T : DxfEntity

Parameters

entities IEnumerable<T>

The drawing's objects to move.

displacement GeoVector2

The displacement, in the world.

Returns

IReadOnlyList<T>

The objects given, moved where they stand, in the order given.

Type Parameters

T

The type of the objects given.

Exceptions

ArgumentNullException

Thrown when the list is null.

ArgumentException

Thrown when an object of the list is null, or the displacement is not finite.

InvalidOperationException

Thrown when an object is refused, as the remarks say.