使用指定的设置初始化 DragDropInfo 的新实例。
命名空间: Microsoft.VisualStudio.Text.Editor.DragDrop
程序集: Microsoft.VisualStudio.Text.UI.Wpf(在 Microsoft.VisualStudio.Text.UI.Wpf.dll 中)
语法
声明
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
)
参数
___location
类型:Point相对于文本视图左上角的光标位置。
keyStates
类型:DragDropKeyStates操作过程中的键盘状态。
data
类型:IDataObject拖放操作的 IDataObject。
isInternal
类型:Boolean如果已从编辑器内启动拖动操作,则为 true;否则为 false。
source
类型:Object启动拖放操作的对象。
allowedEffects
类型:DragDropEffects源允许的拖放效果。
bufferPosition
类型:Microsoft.VisualStudio.Text.VirtualSnapshotPoint拖放操作过程中的光标缓冲区位置。
.NET Framework 安全性
- 对直接调用方的完全信任。此成员不能由部分信任的代码使用。有关详细信息,请参阅通过部分受信任的代码使用库。