Share via


DropHandlerBase.IsDropEnabled(DragDropInfo) Method

Definition

Determines whether the handler can accept data for a drag and drop operation.

public:
 virtual bool IsDropEnabled(Microsoft::VisualStudio::Text::Editor::DragDrop::DragDropInfo ^ dragDropInfo);
 virtual bool IsDropEnabled(Microsoft::VisualStudio::Text::Editor::DragDrop::DragDropInfo const & dragDropInfo);
public virtual bool IsDropEnabled (Microsoft.VisualStudio.Text.Editor.DragDrop.DragDropInfo dragDropInfo);
abstract member IsDropEnabled : Microsoft.VisualStudio.Text.Editor.DragDrop.DragDropInfo -> bool
override this.IsDropEnabled : Microsoft.VisualStudio.Text.Editor.DragDrop.DragDropInfo -> bool
Public Overridable Function IsDropEnabled (dragDropInfo As DragDropInfo) As Boolean

Parameters

dragDropInfo
DragDropInfo

Information about the drag and drop operation.

Returns

true if the handler can accept data now, otherwise false.

Implements

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 would check the read-only status of the view.

If one drop handler returns false, another drop handler might be used to handle the drop operation, even if the ordering of IDropHandler objects dictates otherwise.

Applies to