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: PointThe location of the cursor relative to the left top corner of the text view.
keyStates
Type: DragDropKeyStatesThe state of the keyboard during the operation.
data
Type: IDataObjectThe IDataObject of the drag and drop operation.
isInternal
Type: Booleantrue if the drag has been initiated from within the editor, otherwise false.
source
Type: ObjectThe object that initiated the drag and drop operation.
allowedEffects
Type: DragDropEffectsThe drag and drop effects allowed by the source.
bufferPosition
Type: Microsoft.VisualStudio.Text.VirtualSnapshotPointThe 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.