DragDropInfo 构造函数

使用指定的设置初始化 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

    源允许的拖放效果。

.NET Framework 安全性

请参阅

参考

DragDropInfo 类

Microsoft.VisualStudio.Text.Editor.DragDrop 命名空间