Share via


Imagelist.dragBegin Method

Begins dragging an image.

Syntax

public boolean dragBegin(
    int imageIdx, 
    int hotSpotX, 
    int hotSpotY)

Run On

Client

Parameters

  • imageIdx
    Type: int
    The index of the image to drag.
  • hotSpotX
    Type: int
    The X-coordinate of the drag position relative to the upper-left corner of the image.
  • hotSpotY
    Type: int
    The Y-coordinate of the drag position relative to the upper-left corner of the image.

Return Value

Type: boolean
1 if the method was successful.

Remarks

The rest of the drag operation is specified by the dragEnter, dragMove, dragLeave, and dragEnd methods.

See Also

Imagelist Class

Imagelist.dragEnter Method

Imagelist.dragMove Method

Imagelist.dragLeave Method

Imagelist.dragEnd Method