trichview.com

trichview.support




Re: How to get generated Text of items with ListStyle


Return to index


Author

Message

Sergey Tkachenko

Posted: 05/22/2004 0:05:26


It's possible using undocumented method


uses RVMarker;


s := TRVMarkerItemInfo(rv.GetItem(i)).DisplayString;

(or use RVData instead of rv).


Besides, it's possible to get slightly processed string. For example,

dot-bullet will be replaced with '*', Symbol right arrow character will be

returned as '->', etc:

s := rv.GetItem(i).AsText(0, rv.RVData, '', '', False, False);



>

> Hello Sergey,

>

> i need to know which text is generated if an item has liststyle.

> i tried with GetListMarkerInfo but i don't get the current Value, if

StartFrom

> is False.

>

> Example:

> i have a numbered list with generated text:

> FormatString := '%0:s.%1:s.' (it's the second level - in the example, the

> first level has value of "X")

>

> generated text of item 1 with this ListLevel: "X.1"

> generated text of item 2 with this ListLevel: "X.2"

> and so on.

>

> I need the generated text of item 1 -> "X.1"

> I need the generated text of item 2 -> "X.2"

> and so on.

>

> Thank you again for yout great support!

>

> Michael Exel

>

>





Powered by ABC Amber Outlook Express Converter