API: How to decide if the content of a TextFrame is selected as a bycatch?

asked 2018-07-29 12:26:27 +0200

Lupp gravatar image

updated 2018-07-29 12:44:46 +0200

(This is for principal interset. The question is about API based programming. Technical terms formatted as code.)

If there is a TextFrame anchored to a paragraph, to a character or as a character, its content can get selected as a bycatch when selecting a TextRange. (This is not recursive, concerning frames in frames e.g. That's intricate and not understandable to me.)

The TextRange objects accessible via the CurrentSelection, however, do not provide an obvious way to find the mentioned bycatch frames.

Please point me to a way if you know one!

Please note:
I well know how to get the TextFrame if its text or part of that text is selected directly.

edit retag flag offensive close merge delete