C# 클래스 SampleCsDragDrop.SampleCsDropTarget

The SampleCsDropTarget class
상속: MRhinoDropTarget
파일 보기 프로젝트 열기: mcneel/Rhino4Samples_DotNet 1 사용 예제들

공개 메소드들

메소드 설명
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