DragDropInfo 构造函数
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
DragDropInfo使用指定的设置初始化的新实例。
public:
DragDropInfo(System::Windows::Point location, System::Windows::DragDropKeyStates keyStates, System::Windows::IDataObject ^ data, bool isInternal, System::Object ^ source, System::Windows::DragDropEffects allowedEffects, Microsoft::VisualStudio::Text::VirtualSnapshotPoint bufferPosition);
public DragDropInfo (System.Windows.Point location, System.Windows.DragDropKeyStates keyStates, System.Windows.IDataObject data, bool isInternal, object source, System.Windows.DragDropEffects allowedEffects, Microsoft.VisualStudio.Text.VirtualSnapshotPoint bufferPosition);
new Microsoft.VisualStudio.Text.Editor.DragDrop.DragDropInfo : System.Windows.Point * System.Windows.DragDropKeyStates * System.Windows.IDataObject * bool * obj * System.Windows.DragDropEffects * Microsoft.VisualStudio.Text.VirtualSnapshotPoint -> Microsoft.VisualStudio.Text.Editor.DragDrop.DragDropInfo
Public Sub New (location As Point, keyStates As DragDropKeyStates, data As IDataObject, isInternal As Boolean, source As Object, allowedEffects As DragDropEffects, bufferPosition As VirtualSnapshotPoint)
参数
- location
- Point
光标相对于文本视图左上角的位置。
- keyStates
- DragDropKeyStates
操作过程中键盘的状态。
- data
- IDataObject
IDataObject拖放操作的。
- isInternal
- Boolean
如果已从编辑器中启动了拖动,则为 true ; 否则为false。
- source
- Object
启动拖放操作的对象。
- allowedEffects
- DragDropEffects
源允许的拖放效果。
- bufferPosition
- VirtualSnapshotPoint
拖放操作过程中光标的缓冲区位置。