[]
        
(Showing Draft Content)

C1.WPF.RichTextBox.C1RichTextViewManager.GetPointFromMouseEvent

GetPointFromMouseEvent Method

GetPointFromMouseEvent(UIElement, MouseEventArgs)

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

Declaration
public Point GetPointFromMouseEvent(UIElement root, MouseEventArgs mouseEvent)
Public Function GetPointFromMouseEvent(root As UIElement, mouseEvent As MouseEventArgs) As Point
Parameters
Type Name Description
UIElement root

The root used as coordinate reference.

MouseEventArgs mouseEvent

A MouseEventArgs to get positions from.

Returns
Type Description
Point

A point in document coordinates.