Interface
ISupportDrag

Exposes methods and properties for draggable elements.

Definition

Namespace:Telerik.WinControls

Assembly:Telerik.WinControls.dll

Syntax:

cs-api-definition
public interface ISupportDrag

Properties

AllowDrag

Determines whether this instance may enter drag operation.

Declaration

cs-api-definition
bool AllowDrag { get; set; }

Property Value

bool

Methods

CanDrag(Point)

Determines that the element is availble for dragging.

Declaration

cs-api-definition
bool CanDrag(Point dragStartPoint)

Parameters

dragStartPoint

Point

An instance of Point which represents a dragging start location.

Returns

bool

True if the object can be dragged, otherwise false.

GetDataContext()

Gets the assosiated with dragged element data context.

Declaration

cs-api-definition
object GetDataContext()

Returns

object

GetDragHint()

Gets the image used by the DragDropService to indicate that the element is being dragged. Usually this is a snapshot of the element itself.

Declaration

cs-api-definition
Image GetDragHint()

Returns

Image