How i can after i create a duplicate move back the selection to the orig shape.So that this Original image always is selected?
In my case is it so:
i select a picture and create a duplicate on the right side. But after this is the duplicate selected. I would like that is only the origin Image is selected
1 2 3 4 5 6 7 8 9 10
private void Button_Click(object sender, RoutedEventArgs e) { corelApp.ActiveDocument.Unit = corelApp.ActiveDocument.Rulers.HUnits; corelApp.ActiveSelection.Shapes.All().CreateSelection(); xSize = corelApp.ActiveSelection.SizeWidth; origImg = corelApp.ActiveSelectionRange.FirstShape; origImg.Duplicate(); corelApp.ActiveSelection.Move(xSize+3, 0); //ConvertImage(); }
No need to select. Please, use the next suggestion:
origImg.Duplicate();
origImg.Move(xSize+3, 0);
The result is the same. Maybe i need to give the copy a name?
Duplicate have parameters for offset, try use
origImg.Duplicate(xSize+3, 0);
corelApp.ActiveDocument.ClearSelection();
origImg.AddToSelection();