This method pastes objects that have been copied.

[Visual Basic] Public Function PasteCopiedObjects() As Boolean
[C#] public bool PasteCopiedObjects();

Parameters

None

Return Value

Returns True if successful, otherwise returns False.

Explanation

The PasteCopiedObjects method pastes objects that have been copied by the CopySelectedObjects method,  by the CutSelectedObjects method, or by choosing "Copy" or "Cut" in the context menu. The objects will be pasted in the coordinate location set in the PastePoint property. If multiple objects have been copied then only when the EditKind property is set to KindOfEdit.MultiSelect can these multiple objects be pasted. If a single object has been copied then when the EditKind property is set to KindOfEdit.Select or set to KindOfEdit.MultiSelect the object can be pasted.

As long as the loaded image doesn't change after the annotation objects have been copied, the EditKind property can be changed and another object drawn, as long as the EditKind property is returned to the above values the copied object can be pasted. However, after copying objects, if another image is loaded, then it is not possible to paste the copied objects.

The top left corner of the copied object will be pasted at the coordinates specified in the PastePoint property. When multiple objects are copied, the most upper left objects top left corner will be pasted at the coordinates specified by the PastePoint property and the other objects will maintain the relative position as when they were copied. If any of the pasted objects are outside of the image displayed in the ImageKit control and the LimitAnnotationPosition or LimitedPastePosition properties are True, all pasted objects will automatically be repositioned to fit within the ImageKit control.

To remove the objects pasted with the PasteCopiedObjects method, right click on the objects and choose "Undo" in the context menu or execute the Undo method.

To perform the same function as executing this method, right click the object and display the context menu then select "Paste". For more details about the context menu, please refer to ContextMenuEnable property.

See also

ImageKit.Edit Members | Newtone.ImageKit.Wpf.ImageKit

 

The ImageKit WPF is created by Newtone Corporation