/// <summary> /// Copy the elements to an offset location /// </summary> /// <param name="graphicsLayer"></param> /// <param name="elements"></param> internal static void CustomCopyElements(this GraphicsLayer graphicsLayer, IEnumerable <Element> elements) { if (elements.Count() == 0) { return; } //Copy the elements. var copyElements = graphicsLayer.CopyElements(elements); //Iterate through the elements to move the anchor point for the copy. foreach (var element in copyElements) { var elementPoly = PolygonBuilder.CreatePolygon(element.GetBounds()); var pointsList = elementPoly.Copy2DCoordinatesToList(); element.SetAnchorPoint(pointsList[1]); } }