Share via


DragDropInfo Constructor

Initializes a new instance of DragDropInfo with the specified settings.

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

Syntax

'Declaration
Public Sub New ( _
    location As Point, _
    keyStates As DragDropKeyStates, _
    data As IDataObject, _
    isInternal As Boolean, _
    source As Object, _
    allowedEffects As DragDropEffects, _
    bufferPosition As VirtualSnapshotPoint _
)
public DragDropInfo(
    Point location,
    DragDropKeyStates keyStates,
    IDataObject data,
    bool isInternal,
    Object source,
    DragDropEffects allowedEffects,
    VirtualSnapshotPoint bufferPosition
)
public:
DragDropInfo(
    Point location, 
    DragDropKeyStates keyStates, 
    IDataObject^ data, 
    bool isInternal, 
    Object^ source, 
    DragDropEffects allowedEffects, 
    VirtualSnapshotPoint bufferPosition
)
new : 
        location:Point * 
        keyStates:DragDropKeyStates * 
        data:IDataObject * 
        isInternal:bool * 
        source:Object * 
        allowedEffects:DragDropEffects * 
        bufferPosition:VirtualSnapshotPoint -> DragDropInfo
public function DragDropInfo(
    location : Point, 
    keyStates : DragDropKeyStates, 
    data : IDataObject, 
    isInternal : boolean, 
    source : Object, 
    allowedEffects : DragDropEffects, 
    bufferPosition : VirtualSnapshotPoint
)

Parameters

  • location
    Type: Point

    The location of the cursor relative to the left top corner of the text view.

  • keyStates
    Type: DragDropKeyStates

    The state of the keyboard during the operation.

  • data
    Type: IDataObject

    The IDataObject of the drag and drop operation.

  • isInternal
    Type: Boolean

    true if the drag has been initiated from within the editor, otherwise false.

  • source
    Type: Object

    The object that initiated the drag and drop operation.

  • allowedEffects
    Type: DragDropEffects

    The drag and drop effects allowed by the source.

.NET Framework Security

See Also

Reference

DragDropInfo Class

Microsoft.VisualStudio.Text.Editor.DragDrop Namespace