trichview.com

trichview.support




Getting the text of an item using TCustomRVItemInfo


Return to index


Author

Message

Martin Holmes

Posted: 07/02/2004 15:49:18


Hi there,


I've written functions which create for me a list of all the items in a

document in TRichViewEdit (including embedded tables) in sequence, so I

can iterate through them in order. I'm accessing the resulting items

like this:


       TCustomRVItemInfo(MyItemList[i]).WHATEVER


etc. Now I need to get the style number and the text of an item, but I'm

not sure how to do this using a cast to TCustomRVItemInfo. These don't work:


       TCustomRVItemInfo(MyItemList[i]).Style

       TCustomRVItemInfo(MyItemList[i]).Text


(although TCustomRVItemInfo(MyItemList[i]).Tag works fine).


Any ideas?


Cheers,

Martin





Powered by ABC Amber Outlook Express Converter