Paragraphlength

Hi again,
I got a few questions.

1) Is the following the only/best way of getting the paragraph-length?
myLength = FTParagraph.gettext.Len

2) It seems that FTStyleRun.getEndPosition erroneously reports zero when the it spans the whole paragraph and the style starts in the previous paragraph and ends in the following.

Example:
this is <b>paragraph 1 <-- this is correct
this is paragraph 2 <-- FTStyleRun(tempParagraph.getItem(j)).getEndPosition reports 0
this is </b>paragraph 3 <-- this is correct

Best,

Peter Karlsson
FTC Website: 
http://www.truenorthsoftware.com/FormattedTextControl/FormattedTextControl.html
Set List Options (digest and vacation modes): www.freelists.org/list/ftcdev
List Archive: www.freelists.org/archives/ftcdev
Unsubscribe: Send email to ftcdev-request@xxxxxxxxxxxxx with "unsubscribe" in 
the subject field.



Other related posts: