Dela via


DragGestureData.Effects Property

Gets or sets the current drag-and-drop effects.

Namespace:  Microsoft.Windows.Design.Interaction
Assembly:  Microsoft.Windows.Design.Interaction (in Microsoft.Windows.Design.Interaction.dll)

Syntax

'Declaration
Public Property Effects As DragDropEffects
'Usage
Dim instance As DragGestureData 
Dim value As DragDropEffects 

value = instance.Effects

instance.Effects = value
public DragDropEffects Effects { get; set; }
public:
property DragDropEffects Effects {
    DragDropEffects get ();
    void set (DragDropEffects value);
}
public function get Effects () : DragDropEffects 
public function set Effects (value : DragDropEffects)

Property Value

Type: System.Windows.DragDropEffects
A DragDropEffects object that represents the current drag-and-drop effects.

Exceptions

Exception Condition
ArgumentException

The effects are not in the allowed effects.

Remarks

The value of this property is copied back to the DragEventArgs for a drag-and-drop operation.

.NET Framework Security

See Also

Reference

DragGestureData Class

DragGestureData Members

Microsoft.Windows.Design.Interaction Namespace

Other Resources

Understanding WPF Designer Extensibility