Class MouseSelectionHandler
This class handles the mouse selection in RadRichTextBox.
Inheritance
Namespace: Telerik.Windows.Documents.Selection
Assembly: Telerik.Windows.Controls.RichTextBox.dll
Syntax
public class MouseSelectionHandler : Object
Constructors
MouseSelectionHandler(RadDocument)
MouseSelectionHandler(RadDocument, IDocumentEditorPresenter)
Declaration
public MouseSelectionHandler(RadDocument document, IDocumentEditorPresenter presenter)
Parameters
RadDocument
document
|
IDocumentEditorPresenter
presenter
|
Fields
DoubleClickTime
This maximum time between click that is considered double click.
Declaration
public static double DoubleClickTime
Field Value
System.Double
|
MouseDoubleClickThreshold
The number of pixels that is acceptable for the mouse to move when doble clicking.
Declaration
public static int MouseDoubleClickThreshold
Field Value
System.Int32
|
MouseDragThreshold
The number of pixels that is considered a drag operation.
Declaration
public static int MouseDragThreshold
Field Value
System.Int32
|
Properties
DropPosition
IsClickSelecting
Declaration
public bool IsClickSelecting { get; }
Property Value
System.Boolean
|
IsDragging
Declaration
public bool IsDragging { get; }
Property Value
System.Boolean
|
IsMoveSelectionDragging
Declaration
public bool IsMoveSelectionDragging { get; }
Property Value
System.Boolean
|
IsTracking
Declaration
public bool IsTracking { get; }
Property Value
System.Boolean
|
Methods
CancelSelection()
Declaration
public bool CancelSelection()
Returns
System.Boolean
|
HandleDocumentCaretPositionChanged(Boolean, Boolean)
Declaration
public void HandleDocumentCaretPositionChanged(bool ctrlPressed, bool shiftPressed)
Parameters
System.Boolean
ctrlPressed
|
System.Boolean
shiftPressed
|
OnSelectionDragged(SelectionDragEventArgs)
Declaration
protected virtual void OnSelectionDragged(SelectionDragEventArgs e)
Parameters
SelectionDragEventArgs
e
|
RegisterDocumentMouseDown(Boolean, Boolean, Point, UIElement, SourceType)
Declaration
public virtual void RegisterDocumentMouseDown(bool ctrlPressed, bool shiftPressed, Point position, UIElement originalSource = null, SourceType source)
Parameters
System.Boolean
ctrlPressed
|
System.Boolean
shiftPressed
|
System.Windows.Point
position
|
System.Windows.UIElement
originalSource
|
SourceType
source
|
RegisterDocumentMouseMove(Point, SourceType)
Declaration
public virtual void RegisterDocumentMouseMove(Point position, SourceType source)
Parameters
System.Windows.Point
position
|
SourceType
source
|
RegisterDocumentMouseRightButtonDown(UIElement, SourceType)
Declaration
public virtual void RegisterDocumentMouseRightButtonDown(UIElement originalSource, SourceType source)
Parameters
System.Windows.UIElement
originalSource
|
SourceType
source
|
RegisterDocumentMouseUp(SourceType, Nullable<Point>)
Declaration
public virtual void RegisterDocumentMouseUp(SourceType source, Nullable<Point> position = null)
Parameters
SourceType
source
|
System.Nullable<System.Windows.Point>
position
|
RegisterDocumentMultipleMouseDown(Boolean, Boolean, Point)
Declaration
protected virtual void RegisterDocumentMultipleMouseDown(bool ctrlPressed, bool shiftPressed, Point position)
Parameters
System.Boolean
ctrlPressed
|
System.Boolean
shiftPressed
|
System.Windows.Point
position
|
RegisterDocumentSingleMouseDown(Boolean, Boolean, Point, UIElement)
Declaration
protected virtual void RegisterDocumentSingleMouseDown(bool ctrlPressed, bool shiftPressed, Point position, UIElement originalSource)
Parameters
System.Boolean
ctrlPressed
|
System.Boolean
shiftPressed
|
System.Windows.Point
position
|
System.Windows.UIElement
originalSource
|
Events
SelectionDragged
Declaration
public event EventHandler<SelectionDragEventArgs> SelectionDragged
Event Type
System.EventHandler<SelectionDragEventArgs>
|