trichview.support
Re: how to read visual lines ? |
Author |
Message |
Sergey Tkachenko |
Posted: 07/26/2002 22:46:36 RichView.RVData.DrawItems is a list of TRVDrawLineInfo objects. These objects represent formatting in thr document. Each non-text item corresponds to one such object. Text item corresponds to one or more (if it is wrapped) such objects. This object has properties: ItemNo - index of item linked to this object Offs - offset in this item (valid for text) Length - length of text (valid for text) (meaning of (ItemNo,Offs) is similar to parameters of SetSelectionBounds) FromNewLine - true if this items starts a new line. This information is enough to implement line-by-line text export. > In MS Richedit I can iterate the Lines > how they appear after word-wrap. > I need this too in richview to implement > an WYSIWYG export line by line. > > In richview one text item can span > over several visual lines. So there > should be line-end-indices within > one text item. Where can I get this info, > it's not published info but it should > exist somewhere. > > Thank you > > > > |
Powered by ABC Amber Outlook Express Converter