Hello, I am working with a CrossRefMarker element.
In the structure view, the CrossRefMarker is show as:
(Refer to Test1 Test2 Test3 in Chapter 1, Section 2, for additional information.)
Here is the code I have:
case SW_EVT_XREF:
XREFId = F_ApiGetId(docId, eventP->fm_elemid, FP_Object);
XRefFile= F_ApiGetString(docId, XREFId, FP_XRefFile);
XRefSrcText = F_ApiGetString(docId, XREFId, FP_XRefSrcText);
//get the text range
tr = F_ApiGetTextRange(docId, XREFId, FP_TextRange);
//get the text
textItems = F_ApiGetTextForRange(docId, &tr, FTI_String);
O/p of XRefSrcText= BABEGEDB: Title(Level1): Test1 Test2 Test3
O/p of textItems= (Refer to
I want to capture the entire text of the CrossRefMarker element i.e "(Refer to Test1 Test2 Test3 in Chapter 1, Section 2, for additional information.)"
Any pointers on how this can be done would be appreciated.
Thanks...
In the structure view, the CrossRefMarker is show as:
(Refer to Test1 Test2 Test3 in Chapter 1, Section 2, for additional information.)
Here is the code I have:
case SW_EVT_XREF:
XREFId = F_ApiGetId(docId, eventP->fm_elemid, FP_Object);
XRefFile= F_ApiGetString(docId, XREFId, FP_XRefFile);
XRefSrcText = F_ApiGetString(docId, XREFId, FP_XRefSrcText);
//get the text range
tr = F_ApiGetTextRange(docId, XREFId, FP_TextRange);
//get the text
textItems = F_ApiGetTextForRange(docId, &tr, FTI_String);
O/p of XRefSrcText= BABEGEDB: Title(Level1): Test1 Test2 Test3
O/p of textItems= (Refer to
I want to capture the entire text of the CrossRefMarker element i.e "(Refer to Test1 Test2 Test3 in Chapter 1, Section 2, for additional information.)"
Any pointers on how this can be done would be appreciated.
Thanks...