ComponentOne RichTextBox for WPF and Silverlight
GetPointFromMouseEvent Method (C1RichTextViewManager)

C1.WPF.RichTextBox Namespace > C1RichTextViewManager Class : GetPointFromMouseEvent Method
The root used as coordinate reference.
A System.Windows.Input.MouseEventArgs to get positions from.
Returns a point in document coordinates from the position of a mouse event.
Syntax
'Declaration
 
Public Function GetPointFromMouseEvent( _
   ByVal root As System.Windows.UIElement, _
   ByVal mouseEvent As System.Windows.Input.MouseEventArgs _
) As System.Windows.Point
public System.Windows.Point GetPointFromMouseEvent( 
   System.Windows.UIElement root,
   System.Windows.Input.MouseEventArgs mouseEvent
)

Parameters

root
The root used as coordinate reference.
mouseEvent
A System.Windows.Input.MouseEventArgs to get positions from.

Return Value

A point in document coordinates.
See Also

Reference

C1RichTextViewManager Class
C1RichTextViewManager Members