DropHandlerBase.IsDropEnabled Method
Determines whether the handler can accept data for a drag and drop operation.
Namespace: Microsoft.VisualStudio.Text.Editor.DragDrop
Assembly: Microsoft.VisualStudio.Text.UI.Wpf (in Microsoft.VisualStudio.Text.UI.Wpf.dll)
Syntax
'宣告
Public Overridable Function IsDropEnabled ( _
dragDropInfo As DragDropInfo _
) As Boolean
public virtual bool IsDropEnabled(
DragDropInfo dragDropInfo
)
public:
virtual bool IsDropEnabled(
DragDropInfo^ dragDropInfo
)
abstract IsDropEnabled :
dragDropInfo:DragDropInfo -> bool
override IsDropEnabled :
dragDropInfo:DragDropInfo -> bool
public function IsDropEnabled(
dragDropInfo : DragDropInfo
) : boolean
Parameters
- dragDropInfo
Type: Microsoft.VisualStudio.Text.Editor.DragDrop.DragDropInfo
Information about the drag and drop operation.
Return Value
Type: System.Boolean
true if either move or copy operations are enabled, otherwise false.
Implements
IDropHandler.IsDropEnabled(DragDropInfo)
Remarks
This method is used by the editor to check whether the drop handler can accept data after it has been designated to handle a drag and drop operation. For example, the drop handler may be able to handle data only if the view is not read-only. The implementation of this method should check the read-only status of the view. If one drop handler returns false, another drop handler may be used to handle the drop operation, even if the ordering of IDropHandler objects dictates otherwise.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.