GoDiagram Web Reference
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.
Make copies of the objects in a collection and add them to this view's document at the given offset.
Syntax
'Declaration
 
Public Overridable Sub CopySelection( _
   ByVal sel As GoSelection, _
   ByVal offset As SizeF, _
   ByVal grid As Boolean _
) 
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 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 GoToolDragging.DoMouseUp method of a GoToolDragging tool.
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

GoView Class
GoView Members

 

 


© 2013. Northwoods Software Corporation. All Rights Reserved.

Send Feedback