GoDigram for .NET Framework and .NET Core
Northwoods.Go Namespace / GoView Class / GetExternalDragImage Method
In This Topic
    GetExternalDragImage Method
    In This Topic
    Return an image to be displayed during a drag coming from another window.
    Syntax
    protected virtual GoObject GetExternalDragImage( 
       DragEventArgs evt
    )

    Parameters

    evt

    Return Value

    a GoImage that is added to this view, or null not to have any such image
    Remarks
    This is called by OnDragEnter when an external drag enters this window, unless ExternalDragDropsOnEnter is true. The default implementation just looks at the DragEventArgs.Data. If the data is a GoSelection, it calls GetBitmapFromCollection(IGoCollection,RectangleF,Boolean), using GoDocument.ComputeBounds to determine the size of the bitmap that is returned, and not drawing any paper background color. By default all other data formats are ignored, causing this method to return null. You can return other kinds of GoObjects besides GoImage. The object (if non-null) gets added to this view to be dragged around by the user to represent whatever might be dropped, and is discarded when the drag is finished whether or not a drop occurs. The relative position of the objects compared to the mouse position is obtained from the selection's GoSelection.HotSpot. The object returned by this method has defined its GoObject.Location so as to return the HotSpot point. The actual side-effects of a drop do not involve the object returned by this method.
    See Also