Share via


FormControl.dragDrop Method

Definition

Overloads

dragDrop()

Determines whether drag-and-drop operations are enabled or disabled for the control.

dragDrop(Int32)

dragDrop()

Determines whether drag-and-drop operations are enabled or disabled for the control.

public:
 virtual int dragDrop();
public virtual int dragDrop ();
abstract member dragDrop : unit -> int
override this.dragDrop : unit -> int
Public Overridable Function dragDrop () As Integer

Returns

1 if drag and drop operations are enabled; otherwise, false.

Remarks

The following example shows how to return or set the value that indicates whether drag-and-drop behavior is enabled.

boolean dDragDrop; 
// The ctrl variable was previously assigned  
// as a FormControl value. 
// Retrieve the drag-and-drop-enabled value. 
dDragDrop = ctrl.dragDrop(); 
// Set the drag and drop-enabled value. 
ctrl.dragDrop(true);

Applies to

dragDrop(Int32)

public:
 virtual int dragDrop(int _value);
public virtual int dragDrop (int _value);
abstract member dragDrop : int -> int
override this.dragDrop : int -> int
Public Overridable Function dragDrop (_value As Integer) As Integer

Parameters

_value
Int32

An integer value that indicates whether drag-and-drop behavior is enabled; optional.

Returns

Applies to