Hi Laurent,

> I retreive a paragraph containing text. Is there a way to know how many 
> lines it represents displayed in the document ? (so, depending on the 
> formats,  font, font size aso)
> 
> I know i can count characters with
> num = Len(myParagraph.string)
> but need know that this number is displayed on N lines

Just a weird idea, which I have not checked yet:

The view cursor has an interface XViewCursor which can go down.  Starting
at the beginning of the paragraph you could go down until you reach the
next paragraph, while counting the number of lines.

        Michael


-- 
Michael Hoennig <[EMAIL PROTECTED]>
project lead OpenOffice.org API
http://api.openoffice.org

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

Reply via email to