Provides the source and candidate drop positions while a selection is dragged over the editor.
Definition
Namespace:Telerik.WinForms.Controls.SyntaxEditor.UI
Assembly:Telerik.WinControls.SyntaxEditor.dll
Syntax:
public class PreviewDragOverEventArgs : EventArgs
Inheritance: objectEventArgsPreviewDragOverEventArgs
Inherited Members
Constructors
Creates preview data for the current drag-over position and its initial drop-allowed state.
public PreviewDragOverEventArgs(CaretPosition startPosition, CaretPosition dropPosition, bool canDrop = true)
The caret position from which the selection drag began.
dropPositionCaretPositionThe current caret position under the pointer.
canDropboolThe initial value of CanDrop, used when updating the drop marker.
Properties
Determines whether whether the selection can be dropped. This property taken into consideration when changing the mouse cursor.
public bool CanDrop { get; set; }
The caret position at which the selection is being dragged over.
public CaretPosition DropPosition { get; }
The start caret position at which the drag operation has been start. The start position is always within the current selection.
public CaretPosition StartPostion { get; }