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
Get
Set
public DragDropEffects Effects { get; set; }
public:
property DragDropEffects Effects {
DragDropEffects get ();
void set (DragDropEffects value);
}
member Effects : DragDropEffects with get, set
function get Effects () : DragDropEffects
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
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.
See Also
Reference
Microsoft.Windows.Design.Interaction Namespace