Share via


DropHandlerBase Class

Definition

This class provides the basic functionality necessary to process drop of data on to the editor. It's provided as a convenience class to easily allow extenders to provide their own custom drop handlers by extending this class.

public ref class DropHandlerBase abstract : Microsoft::VisualStudio::Text::Editor::DragDrop::IDropHandler
[Windows::Foundation::Metadata::WebHostHidden]
public ref class DropHandlerBase abstract : Microsoft::VisualStudio::Text::Editor::DragDrop::IDropHandler
[Windows::Foundation::Metadata::WebHostHidden]
class DropHandlerBase abstract : Microsoft::VisualStudio::Text::Editor::DragDrop::IDropHandler
public abstract class DropHandlerBase : Microsoft.VisualStudio.Text.Editor.DragDrop.IDropHandler
type DropHandlerBase = class
    interface IDropHandler
Public MustInherit Class DropHandlerBase
Implements IDropHandler
Inheritance
DropHandlerBase
Implements

Remarks

This class is provided to allow extenders to provide their own custom drop handlers by extending this class.

Constructors

DropHandlerBase(IWpfTextView, IEditorOperations)

Constructs a DropHandlerBase.

Properties

EditorOperations

Gets the IEditorOperations used to handle tasks such as text insertion.

TextView

Gets the IWpfTextView over which this drop handler operates on.

Methods

DeleteSpans(IList<ITrackingSpan>)

Given a list of ITrackingSpans, deletes them from the buffer.

ExtractText(DragDropInfo)

This method extracts the text of an DragDropInfo object.

GetDragDropEffect(DragDropInfo)

Determines what drag & drop effect should be displayed to the user based on the state of the operation.

HandleDataDropped(DragDropInfo)

Indicates that the drag and drop operation has completed, and that the final tasks, if any, should be performed now.

HandleDragCanceled()

Indicates that a drag and drop operation has been Canceled.

HandleDraggingOver(DragDropInfo)

Indicates that the drag and drop operation is in progress.

HandleDragStarted(DragDropInfo)

Indicates the start of a drag and drop operation.

InsertText(VirtualSnapshotPoint, String)

Inserts some textual data at the given position.

IsDropEnabled(DragDropInfo)

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

MoveText(VirtualSnapshotPoint, IList<ITrackingSpan>, String)

Moves the data from one location to another in the buffer by deleting the selection contents and inserting toInsert in insertionPoint.

PerformPostEditActions(DragDropInfo, Boolean)

This method is called after the edits are made to the buffer to perform any necessary post edit actions.

PerformPreEditActions(DragDropInfo)

This method is called before edits are made to the buffer to perform any necessary pre edit actions.

SelectText(SnapshotPoint, Int32, DragDropInfo, Boolean)

This method selects the text at the end of the drop operation.

Applies to