New to Telerik UI for WinFormsStart a free 30-day trial

This class handles the mouse selection in RadRichTextEditor.

Definition

Namespace:Telerik.WinForms.Documents.Selection

Assembly:Telerik.WinControls.RichTextEditor.dll

Syntax:

C#
public class MouseSelectionHandler

Inheritance: objectMouseSelectionHandler

Constructors

C#
public MouseSelectionHandler(RadDocument document, IDocumentEditorPresenter presenter)
Parameters:documentRadDocumentpresenterIDocumentEditorPresenter

Fields

This maximum time between click that is considered double click.

C#
public static double DoubleClickTime

The number of pixels that is acceptable for the mouse to move when doble clicking.

C#
public static int MouseDoubleClickThreshold

The number of pixels that is considered a drag operation.

C#
public static int MouseDragThreshold

Properties

C#
public DocumentPosition DropPosition { get; }
C#
public bool IsClickSelecting { get; }
C#
public bool IsDragging { get; }
C#
public bool IsMoveSelectionDragging { get; }
C#
public bool IsTracking { get; }

Methods

C#
public bool CancelSelection()
Returns:

bool

C#
public void HandleDocumentCaretPositionChanged(bool ctrlPressed, bool shiftPressed)
Parameters:ctrlPressedboolshiftPressedbool
C#
protected virtual void OnSelectionDragged(SelectionDragEventArgs e)
Parameters:eSelectionDragEventArgs
C#
public virtual void RegisterDocumentMouseDown(bool ctrlPressed, bool shiftPressed, Point position, UIElement originalSource = null, SourceType source = SourceType.Mouse)
Parameters:ctrlPressedboolshiftPressedboolpositionPointoriginalSourceUIElementsourceSourceType
C#
public virtual void RegisterDocumentMouseMove(Point position, SourceType source = SourceType.Mouse)
Parameters:positionPointsourceSourceType
C#
public virtual void RegisterDocumentMouseRightButtonDown(UIElement originalSource, SourceType source = SourceType.Mouse)
Parameters:originalSourceUIElementsourceSourceType
C#
public virtual void RegisterDocumentMouseUp(SourceType source = SourceType.Mouse, Point? position = null)
Parameters:sourceSourceTypepositionPoint?
C#
protected virtual void RegisterDocumentMultipleMouseDown(bool ctrlPressed, bool shiftPressed, Point position)
Parameters:ctrlPressedboolshiftPressedboolpositionPoint
C#
protected virtual void RegisterDocumentSingleMouseDown(bool ctrlPressed, bool shiftPressed, Point position, UIElement originalSource)
Parameters:ctrlPressedboolshiftPressedboolpositionPointoriginalSourceUIElement

Events

C#
public event EventHandler<SelectionDragEventArgs> SelectionDragged