RichTextBox for WPF | ComponentOne
C1.WPF.RichTextBox Namespace / C1RichTextViewManager Class / GetPointFromMouseEvent Method
The root used as coordinate reference.
A System.Windows.Input.MouseEventArgs to get positions from.

In This Topic
    GetPointFromMouseEvent Method (C1RichTextViewManager)
    In This Topic
    Returns a point in document coordinates from the position of a mouse event.
    Syntax
    'Declaration
     
    
    Public Function GetPointFromMouseEvent( _
       ByVal root As UIElement, _
       ByVal mouseEvent As MouseEventArgs _
    ) As Point
    public Point GetPointFromMouseEvent( 
       UIElement root,
       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