Class
MouseSelectionHandler

This class handles the mouse selection in RadRichTextEditor.

Definition

Namespace:Telerik.WinForms.Documents.Selection

Assembly:Telerik.WinControls.RichTextEditor.dll

Syntax:

cs-api-definition
public class MouseSelectionHandler

Inheritance: objectMouseSelectionHandler

Constructors

MouseSelectionHandler(RadDocument, IDocumentEditorPresenter)

Declaration

cs-api-definition
public MouseSelectionHandler(RadDocument document, IDocumentEditorPresenter presenter)

Parameters

document

RadDocument

presenter

IDocumentEditorPresenter

Fields

DoubleClickTime

This maximum time between click that is considered double click.

Declaration

cs-api-definition
public static double DoubleClickTime

Field Value

double

MouseDoubleClickThreshold

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

Declaration

cs-api-definition
public static int MouseDoubleClickThreshold

Field Value

int

MouseDragThreshold

The number of pixels that is considered a drag operation.

Declaration

cs-api-definition
public static int MouseDragThreshold

Field Value

int

Properties

DropPosition

Declaration

cs-api-definition
public DocumentPosition DropPosition { get; }

Property Value

DocumentPosition

IsClickSelecting

Declaration

cs-api-definition
public bool IsClickSelecting { get; }

Property Value

bool

IsDragging

Declaration

cs-api-definition
public bool IsDragging { get; }

Property Value

bool

IsMoveSelectionDragging

Declaration

cs-api-definition
public bool IsMoveSelectionDragging { get; }

Property Value

bool

IsTracking

Declaration

cs-api-definition
public bool IsTracking { get; }

Property Value

bool

Methods

CancelSelection()

Declaration

cs-api-definition
public bool CancelSelection()

Returns

bool

HandleDocumentCaretPositionChanged(bool, bool)

Declaration

cs-api-definition
public void HandleDocumentCaretPositionChanged(bool ctrlPressed, bool shiftPressed)

Parameters

ctrlPressed

bool

shiftPressed

bool

OnSelectionDragged(SelectionDragEventArgs)

Declaration

cs-api-definition
protected virtual void OnSelectionDragged(SelectionDragEventArgs e)

Parameters

e

SelectionDragEventArgs

RegisterDocumentMouseDown(bool, bool, Point, UIElement, SourceType)

Declaration

cs-api-definition
public virtual void RegisterDocumentMouseDown(bool ctrlPressed, bool shiftPressed, Point position, UIElement originalSource = null, SourceType source = SourceType.Mouse)

Parameters

ctrlPressed

bool

shiftPressed

bool

position

Point

originalSource

UIElement

source

SourceType

RegisterDocumentMouseMove(Point, SourceType)

Declaration

cs-api-definition
public virtual void RegisterDocumentMouseMove(Point position, SourceType source = SourceType.Mouse)

Parameters

position

Point

source

SourceType

RegisterDocumentMouseRightButtonDown(UIElement, SourceType)

Declaration

cs-api-definition
public virtual void RegisterDocumentMouseRightButtonDown(UIElement originalSource, SourceType source = SourceType.Mouse)

Parameters

originalSource

UIElement

source

SourceType

RegisterDocumentMouseUp(SourceType, Point?)

Declaration

cs-api-definition
public virtual void RegisterDocumentMouseUp(SourceType source = SourceType.Mouse, Point? position = null)

Parameters

source

SourceType

position

Point?

RegisterDocumentMultipleMouseDown(bool, bool, Point)

Declaration

cs-api-definition
protected virtual void RegisterDocumentMultipleMouseDown(bool ctrlPressed, bool shiftPressed, Point position)

Parameters

ctrlPressed

bool

shiftPressed

bool

position

Point

RegisterDocumentSingleMouseDown(bool, bool, Point, UIElement)

Declaration

cs-api-definition
protected virtual void RegisterDocumentSingleMouseDown(bool ctrlPressed, bool shiftPressed, Point position, UIElement originalSource)

Parameters

ctrlPressed

bool

shiftPressed

bool

position

Point

originalSource

UIElement

Events

SelectionDragged

Declaration

cs-api-definition
public event EventHandler<SelectionDragEventArgs> SelectionDragged

Event Value

EventHandler<SelectionDragEventArgs>