DragDropInfo.AllowedEffects 属性

获取源允许的拖放效果。

命名空间:  Microsoft.VisualStudio.Text.Editor.DragDrop
程序集:  Microsoft.VisualStudio.Text.UI.Wpf(在 Microsoft.VisualStudio.Text.UI.Wpf.dll 中)

语法

声明
Public Property AllowedEffects As DragDropEffects
public DragDropEffects AllowedEffects { get; private set; }
public:
property DragDropEffects AllowedEffects {
    DragDropEffects get ();
    private: void set (DragDropEffects value);
}
member AllowedEffects : DragDropEffects with get, private set
function get AllowedEffects () : DragDropEffects 
private function set AllowedEffects (value : DragDropEffects)

属性值

类型:DragDropEffects
源允许的 DragDropEffects

备注

作为在源和目标之间的协定的一部分,目标必须遵循该源允许的效果。 例如,在中,如果源不允许 Move,则该目标不应执行移动。

.NET Framework 安全性

请参阅

参考

DragDropInfo 类

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