Page 1 of 1

Retrieve pRegions from IPXV_DocHighlightItem

Posted: Thu Feb 06, 2020 11:24 am
by zarkogajic
Hi support,

When using the IPXV_DocHighlighter, the Add method accepts pRegions (and other parameters) which I set to IPXC_QuadsF, and returns IPXV_DocHighlightItem.

This all works well.

Question: is there a way to retrieve pRegions back from the created IPXV_DocHighlightItem ?

Why: I'm allowing the user to select various pieces of text in the document and upon selection I highlight them. When "finished" I want to do something to the highlighted regions - say underline (similar to what the Search Pane's "Underline Search Results" does).

p.s.
I could, of course, have an internal list of highlight items storing along the used IPXC_QuadsF - but I'm expecting there's a way to extract that somehow from the IPXV_DocHighlighter (?).

-žarko

Re: Retrieve pRegions from IPXV_DocHighlightItem  SOLVED

Posted: Sat Feb 08, 2020 8:10 am
by Sasha - Tracker Dev Team
Hello žarko,

I'm afraid that you will have to store your added highlight regions in your inner structures as you are doing now.

Cheers,
Alex

Re: Retrieve pRegions from IPXV_DocHighlightItem

Posted: Sat Feb 08, 2020 11:00 am
by zarkogajic
Hi Alex,

Good enough, thanks.


Re: Retrieve pRegions from IPXV_DocHighlightItem

Posted: Sat Feb 08, 2020 3:37 pm
by Sasha - Tracker Dev Team
:)