C1.Win.C1FlexGrid Namespace > C1FlexGridBase Class : DropMode Property |
'Declaration
<C1DescriptionAttribute("Gets or sets a value that determines if the control can accept data that the user drags onto it.")> <DefaultValueAttribute()> <C1CategoryAttribute("Behavior")> Public Property DropMode As DropModeEnum
'Usage
Dim instance As C1FlexGridBase Dim value As DropModeEnum instance.DropMode = value value = instance.DropMode
[C1Description("Gets or sets a value that determines if the control can accept data that the user drags onto it.")] [DefaultValue()] [C1Category("Behavior")] public DropModeEnum DropMode {get; set;}
[C1Description("Gets or sets a value that determines if the control can accept data that the user drags onto it.")] [DefaultValue()] [C1Category("Behavior")] public: property DropModeEnum DropMode { DropModeEnum get(); void set ( DropModeEnum value); }
This property allows you to use the control as a target for OLE drag-drop operations.
If set to DropModeEnum.None (the default value), the control does not act as a drop target.
If set to DropModeEnum.Manual, the control fires the standard drag-drop events and the programmer is responsible for handling them. The main events involved are System.Windows.Forms.Control.DragOver and System.Windows.Forms.Control.DragDrop. These events are provided by the standard System.Windows.Forms.Control object.
If set to DropModeEnum.Automatic, the control handles the System.Windows.Forms.Control.DragOver and System.Windows.Forms.Control.DragDrop events automatically by performing the following actions:
1) Query the data object for data in text or filename formats.
2) Scroll if the user drags an object near the edges of the control.
3) Paste the contents of the data object when the user drops valid data on the control.
Note: This property replaces and extends the AllowDrop property provided by the base System.Windows.Forms.Control object.
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2