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
'宣言
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: System.Windows.Point
The location of the cursor relative to the left top corner of the text view.
- keyStates
Type: System.Windows.DragDropKeyStates
The state of the keyboard during the operation.
- data
Type: System.Windows.IDataObject
The IDataObject of the drag and drop operation.
- isInternal
Type: System.Boolean
true if the drag has been initiated from within the editor, otherwise false.
- source
Type: System.Object
The object that initiated the drag and drop operation.
- allowedEffects
Type: System.Windows.DragDropEffects
The drag and drop effects allowed by the source.
- bufferPosition
Type: Microsoft.VisualStudio.Text.VirtualSnapshotPoint
The buffer position of the cursor during the drag and drop operation.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.