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

Provides the source and target caret positions before the editor moves a dragged selection.

Definition

Namespace:Telerik.WinForms.Controls.SyntaxEditor.UI

Assembly:Telerik.WinControls.SyntaxEditor.dll

Syntax:

C#
public class PreviewDragDropEventArgs : EventArgs

Inheritance: objectEventArgsPreviewDragDropEventArgs

Inherited Members EventArgs.Empty

Constructors

Creates event data for a selection drag from its source position to the drop position.

C#
public PreviewDragDropEventArgs(CaretPosition startPosition, CaretPosition dropPosition)
Parameters:startPositionCaretPosition

The caret position from which the selection drag began.

dropPositionCaretPosition

The caret position where the selection is being dropped.

Properties

The caret position at which the selection will be dropped.

C#
public CaretPosition DropPosition { get; }

Determines whether the event is handled. If the property is set to true, the selection will not be moved to the dragged position.

C#
public bool Handled { get; set; }

The caret position at which the drag operation has been started. The start position is always within the current selection.

C#
public CaretPosition StartPostion { get; }