다음을 통해 공유


DragDropInfo Class

Provides information about an ongoing drag and drop operation.

Inheritance Hierarchy

System.Object
  Microsoft.VisualStudio.Text.Editor.DragDrop.DragDropInfo

Namespace:  Microsoft.VisualStudio.Text.Editor.DragDrop
Assembly:  Microsoft.VisualStudio.Text.UI.Wpf (in Microsoft.VisualStudio.Text.UI.Wpf.dll)

Syntax

‘선언
Public Class DragDropInfo
public class DragDropInfo
public ref class DragDropInfo
type DragDropInfo =  class end
public class DragDropInfo

The DragDropInfo type exposes the following members.

Constructors

  Name Description
Public method DragDropInfo Initializes a new instance of DragDropInfo with the specified settings.

Top

Properties

  Name Description
Public property AllowedEffects Gets the drag and drop effects allowed by the source.
Public property Data Gets the IDataObject of the drag and drop operation.
Public property IsInternal Determines whether the drag and drop operation has been initiated from within the editor.
Public property KeyStates Gets the state of the keyboard during the operation.
Public property Location Gets the location of the cursor relative to the left top corner of the text view.
Public property Source Gets the object that initiated the drag and drop operation.
Public property VirtualBufferPosition Gets the buffer position of the cursor during the drag and drop operation.

Top

Methods

  Name Description
Public method Equals Determines whether two DragDropInfo objects have the same settings. (Overrides Object.Equals(Object).)
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.)
Public method GetHashCode Gets the hash code for this DragDropInfo object. (Overrides Object.GetHashCode().)
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Protected method MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Public method ToString Returns a string that represents the current object. (Inherited from Object.)

Top

Operators

  Name Description
Public operatorStatic member Equality Determines whether two DragDropInfo objects have the same settings.
Public operatorStatic member Inequality Determines whether two DragDropInfo objects have different settings.

Top

Remarks

A DragDropInfo object is passed to IDropHandler objects when the state of the drag and drop operation changes.

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