Share via


DragDropInfo.AllowedEffects Property

Gets the drag and drop effects allowed by the source.

Namespace:  Microsoft.VisualStudio.Text.Editor.DragDrop
Assembly:  Microsoft.VisualStudio.Text.UI.Wpf (in Microsoft.VisualStudio.Text.UI.Wpf.dll)

Syntax

'Declaration
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)

Property Value

Type: System.Windows.DragDropEffects
The DragDropEffects allowed by the source.

Remarks

As part of the contract between the source and the target, the target must honor the effects allowed by the source. For example, if the source does not permit a Move, then the target should not execute a move.

.NET Framework Security

See Also

Reference

DragDropInfo Class

Microsoft.VisualStudio.Text.Editor.DragDrop Namespace