trichview.support
Re: Wrong Lines Count |
Author |
Message |
Sergey Tkachenko |
Posted: 12/03/2004 14:48:12 This function works only if the document is formatted for displaying, otherwise a number of lines is undefined (and call of GetLineNo may even cause an exception). If you create/modify document using Add*** methods, call Format method before displaying it or calling GetLineNo. Number of lines depend on word wrapping. > Hm, sometimes this works, but not always. > I think sometimes after some items additions RichViewEdit not refreshes > lines count. > Now I have current line 24 of 18 :-/ > > > "Sergey Tkachenko" <svt@trichview.com> wrote in message > news:41aec2ed$3@support.torry.net... > > This method returns not a lines count but document items count (the same > > as > > ItemCount). It was not removed because of backward compatibility. > > > > As for lines count, use > > MyRichView.GetLineNo(MyRichView.ItemCount-1, > > MyRichView.GetOffsAfterItem(MyRichView.ItemCount-1)) > > |
Powered by ABC Amber Outlook Express Converter