New to Telerik UI for WinForms? Start a free 30-day trial

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:

C#
public class PreviewDragOverEventArgs : EventArgs

Inheritance: objectEventArgsPreviewDragOverEventArgs

Inherited Members EventArgs.Empty

Constructors

Creates preview data for the current drag-over position and its initial drop-allowed state.

C#
public PreviewDragOverEventArgs(CaretPosition startPosition, CaretPosition dropPosition, bool canDrop = true)
Parameters:startPositionCaretPosition

The caret position from which the selection drag began.

dropPositionCaretPosition

The current caret position under the pointer.

canDropbool

The 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.

C#
public bool CanDrop { get; set; }

The caret position at which the selection is being dragged over.

C#
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.

C#
public CaretPosition StartPostion { get; }