How to get a paragraph that contains selected string in FDK?
Hello,
I am writing a program that extract a content of paragraph that contains a selection string. This program is running in menu item interaction. When user make a click on menu item. The processes as following:
1. Find a string on a document, e.g.: F_ApiFind("ABC").
2. The API F_ApiFind("ABC") return structure F_TextRangeT.
3. The string "ABC" was highlighted on document.
Here is my question:
How can I write a code to locate a paragraph ID object ( pgfId ) that contains string ( or object ) "ABC"?.
Since object "ABC" belongs to the current paragraph, how can I get paragraph ID ( pgfId) and then get the content of whole paragraph
without looping thru FP_FirstFlowInDoc, FP_FirstTextFrameInFlow, FP_FirstPgf, and FP_NextPgfInFlow.
Thank you very much for you help,
Thai Nguyen