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

Provides the source position and cancellation flag for a selection drag that is about to start.

Definition

Namespace:Telerik.WinForms.Controls.SyntaxEditor.UI

Assembly:Telerik.WinControls.SyntaxEditor.dll

Syntax:

C#
public class PreviewDragStartEventArgs : EventArgs

Inheritance: objectEventArgsPreviewDragStartEventArgs

Inherited Members EventArgs.Empty

Constructors

Creates preview data for a drag beginning at the specified caret position. CanStart is initialized to true.

C#
public PreviewDragStartEventArgs(CaretPosition startPosition, bool canStart = true)
Parameters:startPositionCaretPosition

The caret position treated as the start of the drag.

canStartbool

Currently ignored; set CanStart in the preview event handler to cancel the drag.

Properties

Determines whether a drag operation may start.

C#
public bool CanStart { get; set; }

The start caret position from which the drag operation will start. The start position is always within the current selection.

C#
public CaretPosition StartPostion { get; }