C# Class SampleCsDragDrop.SampleCsDropTarget

The SampleCsDropTarget class
Inheritance: MRhinoDropTarget
Afficher le fichier Open project: mcneel/Rhino4Samples_DotNet Class Usage Examples

Méthodes publiques

Méthode Description
GetSampleCsDragData ( DataObject data ) : SampleCsDragData

Extract SampleCsDragDropData from DataObject

OnDropOnLayerListCtrl ( IWin32Window layerListCtrl, int layerIndex, DataObject data, DragDropEffects dropEffect, Point point ) : bool

This method is called when the drag and drop operation is completed and the item being dragged was dropped on the Rhino layer list control.

OnDropOnObject ( IRhinoObjRef objRef, MRhinoView rhinoView, DataObject data, DragDropEffects dropEffect, Point point ) : bool

This method is called when the drag and drop operation is completed and the item being dragged was dropped on a valid, top level Rhino object.

OnDropOnRhinoView ( MRhinoView rhinoView, DataObject data, DragDropEffects effect, Point point ) : bool

This method is called when the drag and drop operation is completed and the item being dragged was dropped on a Rhino view and did not land on a selectable object.

SupportDataObject ( DataObject data ) : bool

The first plug-in that returns true will get control of the drag and drop operation. You should check to see if your data is included in the specified DataObject and only return true if it is.

Method Details

GetSampleCsDragData() public méthode

Extract SampleCsDragDropData from DataObject
public GetSampleCsDragData ( DataObject data ) : SampleCsDragData
data System.Windows.Forms.DataObject
Résultat SampleCsDragData

OnDropOnLayerListCtrl() public méthode

This method is called when the drag and drop operation is completed and the item being dragged was dropped on the Rhino layer list control.
public OnDropOnLayerListCtrl ( IWin32Window layerListCtrl, int layerIndex, DataObject data, DragDropEffects dropEffect, Point point ) : bool
layerListCtrl IWin32Window
layerIndex int
data System.Windows.Forms.DataObject
dropEffect DragDropEffects
point Point
Résultat bool

OnDropOnObject() public méthode

This method is called when the drag and drop operation is completed and the item being dragged was dropped on a valid, top level Rhino object.
public OnDropOnObject ( IRhinoObjRef objRef, MRhinoView rhinoView, DataObject data, DragDropEffects dropEffect, Point point ) : bool
objRef IRhinoObjRef
rhinoView MRhinoView
data System.Windows.Forms.DataObject
dropEffect DragDropEffects
point Point
Résultat bool

OnDropOnRhinoView() public méthode

This method is called when the drag and drop operation is completed and the item being dragged was dropped on a Rhino view and did not land on a selectable object.
public OnDropOnRhinoView ( MRhinoView rhinoView, DataObject data, DragDropEffects effect, Point point ) : bool
rhinoView MRhinoView
data System.Windows.Forms.DataObject
effect DragDropEffects
point Point
Résultat bool

SupportDataObject() public méthode

The first plug-in that returns true will get control of the drag and drop operation. You should check to see if your data is included in the specified DataObject and only return true if it is.
public SupportDataObject ( DataObject data ) : bool
data System.Windows.Forms.DataObject
Résultat bool