If you can create a text cursor from a TextRange, then you can use the ParagraphCursor to jump to the start and end of the paragraph.

Julien Galand wrote:

Does someone know a reliable way to get the paragraph containing a TextRange (let's say it's collapsed), beside of course enumerating all paragraphs from the start of the text ? (which has linear complexity proportional to the number of paragraphs)

--
Andrew Pitonyak
My Macro Document: http://www.pitonyak.org/AndrewMacro.odt
My Book: http://www.hentzenwerke.com/catalog/oome.htm
Info:  http://www.pitonyak.org/oo.php
See Also: http://documentation.openoffice.org/HOW_TO/index.html

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to