Northwoods.Go Assembly > Northwoods.Go Namespace > GoView Class : DoExternalDrop Method |
'Declaration Protected Overridable Function DoExternalDrop( _ ByVal evt As DragEventArgs _ ) As IGoCollection
protected virtual IGoCollection DoExternalDrop( DragEventArgs evt )
By default this method gets the drop data as a GoSelection, and copies the selected objects into this view's document with an offset that places the primary selection at the drop point. After calling GoDocument.CopyFromCollection to add a copy of each object in the selection to this view's document, it selects all of them in this view and raises an event by calling RaiseExternalObjectsDropped.
This method is commonly overridden in order to handle different data formats, depending on the expected actual source Control
.
This method is called by OnDragDrop normally if IsInternalDragDrop is false, but will also be called by OnDragEnter if ExternalDragDropsOnEnter is true. In the latter case, the view's Selection should be the newly dropped objects created by this method. The selection is built between SelectionStarting and SelectionFinished events.
After the GoObject
s have been created and added to the document as part of the drop and after those objects have been selected, and when ExternalDragDropsOnEnter is false, this method checks the value of DoSelectionDropReject to see if it the drop is permitted or should be cancelled. If it should be cancelled, the selection is deleted. Otherwise, this method calls DoSelectionDropped and then RaiseExternalObjectsDropped.
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