다음을 통해 공유


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
Protected method DropHandlerBase Initializes a new instance of a DropHandlerBase.

Top

Properties

  Name Description
Protected property EditorOperations Gets the IEditorOperations used to handle tasks such as text insertion.
Protected property TextView Gets the text view.

Top

Methods

  Name Description
Protected method DeleteSpans Deletes the specified spans from the buffer.
Public method Equals Determines whether the specified Object is equal to the current Object. (Inherited from Object.)
Protected method ExtractText Extracts the text of the specified drag and drop info.
Protected method Finalize Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Protected method GetDragDropEffect Gets the drag and drop effect that should be displayed to the user based on the state of the operation.
Public method GetHashCode Serves as a hash function for a particular type. (Inherited from Object.)
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Public method HandleDataDropped Indicates that the drag and drop operation has completed, and that the final tasks, if any, should be performed now.
Public method HandleDragCanceled Indicates that a drag and drop operation has been canceled.
Public method HandleDraggingOver Indicates that the drag and drop operation is in progress.
Public method HandleDragStarted Indicates the start of a drag and drop operation.
Protected method InsertText Inserts textual data at the given position.
Public method IsDropEnabled Determines whether the handler can accept data for a drag and drop operation.
Protected method MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Protected method 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.
Protected method PerformPostEditActions This method is called after the edits are made to the buffer to perform any necessary post edit actions.
Protected method PerformPreEditActions This method is called before edits are made to the buffer to perform any necessary pre edit actions.
Protected method SelectText Selects the text at the end of the drop operation.
Public method 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.

See Also

Reference

Microsoft.VisualStudio.Text.Editor.DragDrop Namespace