Returns a point in document coordinates from the position of a mouse event.

Namespace:  C1.Phone.RichTextBox
Assembly:  C1.Phone.RichTextBox (in C1.Phone.RichTextBox.dll)

Syntax

C#
public Point GetPointFromMouseEvent(
	UIElement root,
	MouseEventArgs mouseEvent
)
Visual Basic
Public Function GetPointFromMouseEvent ( _
	root As UIElement, _
	mouseEvent As MouseEventArgs _
) As Point

Parameters

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

Return Value

A point in document coordinates.

See Also