我正在寻找一种巧妙而准确的方法来获取文本中段落的光标位置。我将使用此点在文本项或段落之外放置图像。我在印象中这样做,因此使用XShape和XText。我正在寻找的位置与XTextViewCursor的getPosition方法类似。以下最佳描述了我正在寻找的东西。
[position ?] This is paragraph one [position ?] this is paragraph tow this is paragraph two [position ? ] this is paragraph three this is paragraph three this is paragraph three