Selected Text - Value & Coordinates
Posted: Thu Nov 23, 2017 6:08 pm
I have used the search function for the forums and found many related topics, but nothing that seemed to answer or provide actual guidance on where to go for this....
How do I get the selected Text Value and Coordinates on a document?
Even using the DEMO app for instance. I can select text on the form and it properly highlights. I can then see the "Inst.ActiveDoc.ActiveSel" object has some properties that tell me a little about it, copy/paste etc. It also has a ClusterID and normal ID.
But I do not see any way to go from that selection to actual string values or X,Y,Width,Height coordinates. Though if I had the Value and starting X/Y I can calculate the text characters coordinates from the GetPageTextFunction.
In short I am just trying to figure out what a user is selecting within the application as it relates to the PageText
How do I get the selected Text Value and Coordinates on a document?
Even using the DEMO app for instance. I can select text on the form and it properly highlights. I can then see the "Inst.ActiveDoc.ActiveSel" object has some properties that tell me a little about it, copy/paste etc. It also has a ClusterID and normal ID.
But I do not see any way to go from that selection to actual string values or X,Y,Width,Height coordinates. Though if I had the Value and starting X/Y I can calculate the text characters coordinates from the GetPageTextFunction.
In short I am just trying to figure out what a user is selecting within the application as it relates to the PageText