trichview.com

trichview.support




Re: Numbering paragraph in TRichView


Return to index


Author

Message

Sergey Tkachenko

Posted: 01/28/2005 20:49:56


uses RVMarker;


// this code assumes that all counters are in the root document,

// not in table cells


for i := 0 to rv.ItemCount-1 do

  if rv.GetItemStyle(i)=rvsListMarker then

  begin

    TRVListMarkerInfo(rv.GetItem(i)).Counter is a value of this counter

    TRVListMarkerInfo(rv.GetItem(i)).DisplayString is a string to display

    You can lock a value of this counter:

    rv.SetListMarkerInfo(i, TRVListMarkerInfo(rv.GetItem(i)).ListNo,

      TRVListMarkerInfo(rv.GetItem(i)).Level,

TRVListMarkerInfo(rv.GetItem(i)).Counter,

      -1, True);

  end;


>

> Dear Sergey,

> I want to import RTF file,this file contains some numbering lists - for

ex.

> :

> 1........

>   1.1 .....

>      1.1.1 .....

> and so on.

> No problem - I get the same lists in richview. (sometimes some different

> :-)) but, I need  to get access to this numbers,is it possible?

> I don't want to get numbering List, I want to get a simple line (item)

with

> digits at the beginnig.

>





Powered by ABC Amber Outlook Express Converter