GoDigram for .NET Framework and .NET Core
Northwoods.Go Namespace / GoView Class / CopySelection Method
The collection of objects to be copied; if null, this view's Selection is used.
The distance the objects should be moved from the original's location.
Whether to adjust the computed destination location by calling SnapPoint. This is normally true, to allow any relevant grids to decide how to control movement of objects.
In This Topic
    CopySelection Method
    In This Topic
    Make copies of the objects in a collection and add them to this view's document at the given offset.
    Syntax
    public virtual void CopySelection( 
       GoSelection sel,
       SizeF offset,
       bool grid
    )

    Parameters

    sel
    The collection of objects to be copied; if null, this view's Selection is used.
    offset
    The distance the objects should be moved from the original's location.
    grid
    Whether to adjust the computed destination location by calling SnapPoint. This is normally true, to allow any relevant grids to decide how to control movement of objects.
    Remarks
    This method heeds the CanCopyObjects property if sel is this view's Selection, and it heeds each object's CanCopy property as well. The GoObject.DraggingObject property allows individual objects to decide to copy the parent group instead of the object itself. To accomplish the copy, this method calls GoDocument's GoDocument.CopyFromCollection. To accomplish the move, each object's GoObject.DoMove is called, to support object-specific move behavior. All actions take place within a GoUndoManager.GoUndoManager.CopySelectionName transaction. The newly copied top-level objects become this view's new Selection. This does not raise the SelectionCopied event; that event is raised by the DoMouseUp method of a GoToolDragging tool.
    See Also