Hi Patrick,
Thank you for writing.
The following code snippet shows how you can get the position:
Private
Sub
RadPdfViewer1_Click(
ByVal
sender
As
Object
,
ByVal
e
As
EventArgs)
Dim
element = TryCast(radPdfViewer1.ElementTree.GetElementAtPoint(
CType
(e, MouseEventArgs).Location), RadFixedPageElement)
If
element IsNot
Nothing
Then
Dim
mouseLocation =
CType
(e, MouseEventArgs).Location
Dim
tt = element.TotalTransform
tt.Scale(radPdfViewer.ScaleFactor, radPdfViewer.ScaleFactor)
tt.Invert()
Dim
pointInDoc = tt.TransformPoint(mouseLocation)
Console.WriteLine(pointInDoc)
End
If
End
Sub
Could you test this with your documents and let me know how it works on your side?
I am looking forward to your reply.
Regards,
Dimitar
Telerik
Check out the Windows Forms project converter, which aids the conversion process from standard Windows Forms applications written in C# or VB to Telerik UI for WinForms.For more information check out this
blog post and share your thoughts.