Kommentar
Åtkomst till den här sidan kräver auktorisering. Du kan prova att logga in eller ändra kataloger.
Åtkomst till den här sidan kräver auktorisering. Du kan prova att ändra kataloger.
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
- 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