DropHandlerBase Class
Provides the basic functionality necessary to process dragging and dropping data in the editor.
Inheritance Hierarchy
System.Object
Microsoft.VisualStudio.Text.Editor.DragDrop.DropHandlerBase
Namespace: Microsoft.VisualStudio.Text.Editor.DragDrop
Assembly: Microsoft.VisualStudio.Text.UI.Wpf (in Microsoft.VisualStudio.Text.UI.Wpf.dll)
Syntax
‘선언
Public MustInherit Class DropHandlerBase _
Implements IDropHandler
public abstract class DropHandlerBase : IDropHandler
public ref class DropHandlerBase abstract : IDropHandler
[<AbstractClass>]
type DropHandlerBase =
class
interface IDropHandler
end
public abstract class DropHandlerBase implements IDropHandler
The DropHandlerBase type exposes the following members.
Constructors
Name | Description | |
---|---|---|
DropHandlerBase | Initializes a new instance of a DropHandlerBase. |
Top
Properties
Name | Description | |
---|---|---|
EditorOperations | Gets the IEditorOperations used to handle tasks such as text insertion. | |
TextView | Gets the text view. |
Top
Methods
Name | Description | |
---|---|---|
DeleteSpans | Deletes the specified spans from the buffer. | |
Equals | Determines whether the specified Object is equal to the current Object. (Inherited from Object.) | |
ExtractText | Extracts the text of the specified drag and drop info. | |
Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) | |
GetDragDropEffect | Gets the drag and drop effect that should be displayed to the user based on the state of the operation. | |
GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
HandleDataDropped | 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 | Indicates that the drag and drop operation is in progress. | |
HandleDragStarted | Indicates the start of a drag and drop operation. | |
InsertText | Inserts textual data at the given position. | |
IsDropEnabled | Determines whether the handler can accept data for a drag and drop operation. | |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
MoveText | Moves the data from one location to another in the buffer by deleting the selection contents and inserting the specified text at the specified position. | |
PerformPostEditActions | This method is called after the edits are made to the buffer to perform any necessary post edit actions. | |
PerformPreEditActions | This method is called before edits are made to the buffer to perform any necessary pre edit actions. | |
SelectText | Selects the text at the end of the drop operation. | |
ToString | Returns a string that represents the current object. (Inherited from Object.) |
Top
Remarks
This class is provided to allow extenders to provide their own custom drop handlers by extending this class.
Thread Safety
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.