Intersoft ClientUI Documentation
DropAction Property
See Also  Send Feedback
Intersoft.Client.UI.Controls.Interactivity Namespace > DragDropBehavior Class : DropAction Property






Gets or sets the action when the attached object is dropped.

Syntax

Visual Basic (Declaration) 
<CategoryAttribute("Behavior")>
Public Property DropAction As DropAction
Visual Basic (Usage)Copy Code
Dim instance As DragDropBehavior
Dim value As DropAction
 
instance.DropAction = value
 
value = instance.DropAction
C# 
[CategoryAttribute("Behavior")]
public DropAction DropAction {get; set;}
Delphi 
public read-write property DropAction: DropAction; 
JScript 
CategoryAttribute("Behavior")
public function get,set DropAction : DropAction
Managed Extensions for C++ 
[CategoryAttribute("Behavior")]
public: __property DropAction get_DropAction();
public: __property void set_DropAction( 
   DropAction value
);
C++/CLI 
[CategoryAttribute("Behavior")]
public:
property DropAction DropAction {
   DropAction get();
   void set (    DropAction value);
}

Remarks

The available actions are copy and move. Move action will released the original object from its parent and attached to the drop target's panel. Copy action will requires additional code that DragEnd event where the user need to manually create / copy the original object and attached the new object to e.CustomObject at DragEnd event.

Requirements

Target Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family

See Also

© 2012 All Rights Reserved.