C# Класс SampleCsDragDrop.SampleCsDropTarget

The SampleCsDropTarget class
Наследование: MRhinoDropTarget
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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.

Описание методов

GetSampleCsDragData() публичный Метод

Extract SampleCsDragDropData from DataObject
public GetSampleCsDragData ( DataObject data ) : SampleCsDragData
data System.Windows.Forms.DataObject
Результат SampleCsDragData

OnDropOnLayerListCtrl() публичный Метод

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
Результат bool

OnDropOnObject() публичный Метод

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
Результат bool

OnDropOnRhinoView() публичный Метод

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
Результат bool

SupportDataObject() публичный Метод

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
Результат bool